rpc: refactor result tracking for quorum sets

This commit is contained in:
Alex Auvolat
2023-12-07 10:55:15 +01:00
parent c8356a91d9
commit 95eb13eb08
4 changed files with 123 additions and 90 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ use garage_util::data::*;
/// Trait to describe how a table shall be replicated
pub trait TableReplication: Send + Sync + 'static {
type WriteSets: AsRef<Vec<Vec<Uuid>>> + Send + Sync + 'static;
type WriteSets: AsRef<Vec<Vec<Uuid>>> + AsMut<Vec<Vec<Uuid>>> + Send + Sync + 'static;
// See examples in table_sharded.rs and table_fullcopy.rs
// To understand various replication methods