diff options
author | Alex Auvolat <alex@adnab.me> | 2023-12-07 11:16:10 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2023-12-07 11:16:10 +0100 |
commit | d90de365b3b30cb631b22fcd62c98bddb5a91549 (patch) | |
tree | 9ee7226fa49571179b9fd7ff03e45a838a51a909 /src/rpc/layout | |
parent | 95eb13eb08d517d328e3c8aeb222440a27211ee9 (diff) | |
download | garage-d90de365b3b30cb631b22fcd62c98bddb5a91549.tar.gz garage-d90de365b3b30cb631b22fcd62c98bddb5a91549.zip |
table sync: use write quorums to report global success or failure of sync
Diffstat (limited to 'src/rpc/layout')
-rw-r--r-- | src/rpc/layout/helper.rs | 2 | ||||
-rw-r--r-- | src/rpc/layout/manager.rs | 2 |
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) |