mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-08-31 17:28:13 +00:00
fullcopy tables: fix read quorum
This commit is contained in:
@@ -53,7 +53,7 @@ impl TableReplication for TableFullReplication {
|
|||||||
ConsistencyMode::Consistent => {
|
ConsistencyMode::Consistent => {
|
||||||
let layout = self.system.cluster_layout();
|
let layout = self.system.cluster_layout();
|
||||||
let nodes = layout.read_version()?.all_nodes();
|
let nodes = layout.read_version()?.all_nodes();
|
||||||
Ok(nodes.len().div_euclid(2) + 1)
|
Ok(nodes.len().div_ceil(2))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user