aboutsummaryrefslogtreecommitdiff
path: root/src/rpc
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-12-07 11:16:10 +0100
committerAlex Auvolat <alex@adnab.me>2023-12-07 11:16:10 +0100
commitd90de365b3b30cb631b22fcd62c98bddb5a91549 (patch)
tree9ee7226fa49571179b9fd7ff03e45a838a51a909 /src/rpc
parent95eb13eb08d517d328e3c8aeb222440a27211ee9 (diff)
downloadgarage-d90de365b3b30cb631b22fcd62c98bddb5a91549.tar.gz
garage-d90de365b3b30cb631b22fcd62c98bddb5a91549.zip
table sync: use write quorums to report global success or failure of sync
Diffstat (limited to 'src/rpc')
-rw-r--r--src/rpc/layout/helper.rs2
-rw-r--r--src/rpc/layout/manager.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/rpc/layout/helper.rs b/src/rpc/layout/helper.rs
index 881a039e..0aa7c6aa 100644
--- a/src/rpc/layout/helper.rs
+++ b/src/rpc/layout/helper.rs
@@ -180,7 +180,7 @@ impl LayoutHelper {
ret
}
- pub(crate) fn write_sets_of(&self, position: &Hash) -> Vec<Vec<Uuid>> {
+ pub fn storage_sets_of(&self, position: &Hash) -> Vec<Vec<Uuid>> {
self.layout()
.versions
.iter()
diff --git a/src/rpc/layout/manager.rs b/src/rpc/layout/manager.rs
index 17465019..dc963ba0 100644
--- a/src/rpc/layout/manager.rs
+++ b/src/rpc/layout/manager.rs
@@ -139,7 +139,7 @@ impl LayoutManager {
pub fn write_sets_of(self: &Arc<Self>, position: &Hash) -> WriteLock<Vec<Vec<Uuid>>> {
let layout = self.layout();
let version = layout.current().version;
- let nodes = layout.write_sets_of(position);
+ let nodes = layout.storage_sets_of(position);
layout
.ack_lock
.get(&version)