diff options
author | Alex Auvolat <alex@adnab.me> | 2022-06-10 11:23:40 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-06-10 11:23:40 +0200 |
commit | c054de43dd3ccbf6a884f73a474b423bbab41d08 (patch) | |
tree | c94a44e74c0a12e99eeb4078bc5c386bbd51dfe4 /src/model/index_counter.rs | |
parent | bc29d77ed3865fcadfc8d99d029851f6d0f2dee1 (diff) | |
download | garage-c054de43dd3ccbf6a884f73a474b423bbab41d08.tar.gz garage-c054de43dd3ccbf6a884f73a474b423bbab41d08.zip |
Revert "Change object counter table to use full replication"
This reverts commit bc29d77ed3865fcadfc8d99d029851f6d0f2dee1.
Diffstat (limited to 'src/model/index_counter.rs')
-rw-r--r-- | src/model/index_counter.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/model/index_counter.rs b/src/model/index_counter.rs index a8837e0f..36e8172b 100644 --- a/src/model/index_counter.rs +++ b/src/model/index_counter.rs @@ -138,17 +138,17 @@ impl<T: CountedItem> TableSchema for CounterTable<T> { // ---- -pub struct IndexCounter<T: CountedItem, R: TableReplication + 'static> { +pub struct IndexCounter<T: CountedItem> { this_node: Uuid, local_counter: db::Tree, propagate_tx: mpsc::UnboundedSender<(T::CP, T::CS, LocalCounterEntry<T>)>, - pub table: Arc<Table<CounterTable<T>, R>>, + pub table: Arc<Table<CounterTable<T>, TableShardedReplication>>, } -impl<T: CountedItem, R: TableReplication + 'static> IndexCounter<T, R> { +impl<T: CountedItem> IndexCounter<T> { pub fn new( system: Arc<System>, - replication: R, + replication: TableShardedReplication, db: &db::Db, ) -> Arc<Self> { let background = system.background.clone(); |