aboutsummaryrefslogtreecommitdiff
path: root/src/table
diff options
context:
space:
mode:
authorAlex Auvolat <lx@deuxfleurs.fr>2025-02-01 19:07:17 +0100
committerAlex Auvolat <lx@deuxfleurs.fr>2025-02-01 19:07:17 +0100
commitfe937c290195e5451f9e533e02664548817e6e13 (patch)
tree318ba12ff76dc3e435a01a246188c6a964e572f2 /src/table
parent3192088aac0e1795401304a8dec715cd343538cf (diff)
parentd601f311865b8159a7bf1801dd8f43021d0b443b (diff)
downloadgarage-fe937c290195e5451f9e533e02664548817e6e13.tar.gz
garage-fe937c290195e5451f9e533e02664548817e6e13.zip
Merge branch 'main' into next-v2
Diffstat (limited to 'src/table')
-rw-r--r--src/table/Cargo.toml1
-rw-r--r--src/table/table.rs4
2 files changed, 4 insertions, 1 deletions
diff --git a/src/table/Cargo.toml b/src/table/Cargo.toml
index e704cd3c..fad6ea08 100644
--- a/src/table/Cargo.toml
+++ b/src/table/Cargo.toml
@@ -22,7 +22,6 @@ opentelemetry.workspace = true
async-trait.workspace = true
arc-swap.workspace = true
-bytes.workspace = true
hex.workspace = true
hexdump.workspace = true
tracing.workspace = true
diff --git a/src/table/table.rs b/src/table/table.rs
index ea8471d0..255947e7 100644
--- a/src/table/table.rs
+++ b/src/table/table.rs
@@ -204,6 +204,10 @@ impl<F: TableSchema, R: TableReplication> Table<F, R> {
entries_vec.push((write_sets, e_enc));
}
+ if entries_vec.is_empty() {
+ return Ok(());
+ }
+
// Compute a deduplicated list of all of the write sets,
// and compute an index from each node to the position of the sets in which
// it takes part, to optimize the detection of a quorum.