forked from Deuxfleurs/garage
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:
commit
9330fd79d3
1 changed files with 4 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue