aboutsummaryrefslogtreecommitdiff
path: root/src/model/garage.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-01-10 11:01:49 +0100
committerAlex Auvolat <alex@adnab.me>2023-01-10 11:03:52 +0100
commit9f5419f465de3ddbb9afc91464d0eb00636049b9 (patch)
treeca32f851cda043cfe61873ea46268605f1e2c8ed /src/model/garage.rs
parenta48e2e0cb2bdc75e14dfde199dbca0a779b1316b (diff)
downloadgarage-9f5419f465de3ddbb9afc91464d0eb00636049b9.tar.gz
garage-9f5419f465de3ddbb9afc91464d0eb00636049b9.zip
Make K2V item timestamps globally increasing on each node
Diffstat (limited to 'src/model/garage.rs')
-rw-r--r--src/model/garage.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/model/garage.rs b/src/model/garage.rs
index ce479465..74add688 100644
--- a/src/model/garage.rs
+++ b/src/model/garage.rs
@@ -305,8 +305,10 @@ impl GarageK2V {
fn new(system: Arc<System>, db: &db::Db, meta_rep_param: TableShardedReplication) -> Self {
info!("Initialize K2V counter table...");
let counter_table = IndexCounter::new(system.clone(), meta_rep_param.clone(), db);
+
info!("Initialize K2V subscription manager...");
let subscriptions = Arc::new(SubscriptionManager::new());
+
info!("Initialize K2V item table...");
let item_table = Table::new(
K2VItemTable {
@@ -317,7 +319,9 @@ impl GarageK2V {
system.clone(),
db,
);
- let rpc = K2VRpcHandler::new(system, item_table.clone(), subscriptions);
+
+ info!("Initialize K2V RPC handler...");
+ let rpc = K2VRpcHandler::new(system, db, item_table.clone(), subscriptions);
Self {
item_table,