aboutsummaryrefslogtreecommitdiff
path: root/src/model/k2v
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-06-10 11:20:59 +0200
committerAlex Auvolat <alex@adnab.me>2022-06-10 11:20:59 +0200
commitbc29d77ed3865fcadfc8d99d029851f6d0f2dee1 (patch)
tree686305ca670daf14a03362344b52050049d986f2 /src/model/k2v
parentffe05c3c7d56af05f542ada65a385fecfc15c533 (diff)
downloadgarage-bc29d77ed3865fcadfc8d99d029851f6d0f2dee1.tar.gz
garage-bc29d77ed3865fcadfc8d99d029851f6d0f2dee1.zip
Change object counter table to use full replication
Diffstat (limited to 'src/model/k2v')
-rw-r--r--src/model/k2v/item_table.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/model/k2v/item_table.rs b/src/model/k2v/item_table.rs
index baa1db4b..0d91f5e9 100644
--- a/src/model/k2v/item_table.rs
+++ b/src/model/k2v/item_table.rs
@@ -6,6 +6,7 @@ use garage_db as db;
use garage_util::data::*;
use garage_table::crdt::*;
+use garage_table::replication::*;
use garage_table::*;
use crate::index_counter::*;
@@ -187,7 +188,7 @@ impl Entry<K2VItemPartition, String> for K2VItem {
}
pub struct K2VItemTable {
- pub(crate) counter_table: Arc<IndexCounter<K2VItem>>,
+ pub(crate) counter_table: Arc<IndexCounter<K2VItem, TableShardedReplication>>,
pub(crate) subscriptions: Arc<SubscriptionManager>,
}