diff options
author | Alex Auvolat <alex@adnab.me> | 2020-04-19 13:22:28 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-04-19 13:22:28 +0200 |
commit | 7131553c53d4414d2da0e9b60e6e3425f1b46ec2 (patch) | |
tree | 22c4f225ebdbc600c9cbe38e11a01dbc228c5c11 /src/version_table.rs | |
parent | 4ba54ccfca2ff8e56c58d0a652de256428282490 (diff) | |
download | garage-7131553c53d4414d2da0e9b60e6e3425f1b46ec2.tar.gz garage-7131553c53d4414d2da0e9b60e6e3425f1b46ec2.zip |
Refactor sharding logic; coming next: full replication with epidemic dissemination
Diffstat (limited to 'src/version_table.rs')
-rw-r--r-- | src/version_table.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/version_table.rs b/src/version_table.rs index 7e7623fc..24109981 100644 --- a/src/version_table.rs +++ b/src/version_table.rs @@ -5,6 +5,7 @@ use std::sync::Arc; use crate::background::BackgroundRunner; use crate::data::*; use crate::table::*; +use crate::table_sharded::*; use crate::block_ref_table::*; @@ -56,7 +57,7 @@ impl Entry<Hash, EmptySortKey> for Version { pub struct VersionTable { pub background: Arc<BackgroundRunner>, - pub block_ref_table: Arc<Table<BlockRefTable>>, + pub block_ref_table: Arc<Table<BlockRefTable, TableShardedReplication>>, } #[async_trait] |