Merge pull request 'table::insert_many: avoid failure with zero items (fix #915)' (#946) from fix-915 into main

Reviewed-on: Deuxfleurs/garage#946
This commit is contained in:
Alex 2025-01-31 13:10:54 +00:00
commit 9330fd79d3

View file

@ -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.