aboutsummaryrefslogtreecommitdiff
path: root/src/object_table.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-04-19 13:22:28 +0200
committerAlex Auvolat <alex@adnab.me>2020-04-19 13:22:28 +0200
commit7131553c53d4414d2da0e9b60e6e3425f1b46ec2 (patch)
tree22c4f225ebdbc600c9cbe38e11a01dbc228c5c11 /src/object_table.rs
parent4ba54ccfca2ff8e56c58d0a652de256428282490 (diff)
downloadgarage-7131553c53d4414d2da0e9b60e6e3425f1b46ec2.tar.gz
garage-7131553c53d4414d2da0e9b60e6e3425f1b46ec2.zip
Refactor sharding logic; coming next: full replication with epidemic dissemination
Diffstat (limited to 'src/object_table.rs')
-rw-r--r--src/object_table.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/object_table.rs b/src/object_table.rs
index 82a64cd1..59ce3b7f 100644
--- a/src/object_table.rs
+++ b/src/object_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::version_table::*;
@@ -90,7 +91,7 @@ impl Entry<String, String> for Object {
pub struct ObjectTable {
pub background: Arc<BackgroundRunner>,
- pub version_table: Arc<Table<VersionTable>>,
+ pub version_table: Arc<Table<VersionTable, TableShardedReplication>>,
}
#[async_trait]