From 4133476ec968cfd5238b96b1ad5b11a5f7327d8a Mon Sep 17 00:00:00 2001 From: Arthur Carcano Date: Tue, 23 Jun 2026 18:35:35 +0200 Subject: [PATCH] Add TODO comment for migration to typedtree --- src/model/index_counter.rs | 1 + src/model/k2v/rpc.rs | 1 + src/table/data.rs | 5 +++++ 3 files changed, 7 insertions(+) diff --git a/src/model/index_counter.rs b/src/model/index_counter.rs index 50abdec3..885b8b3a 100644 --- a/src/model/index_counter.rs +++ b/src/model/index_counter.rs @@ -163,6 +163,7 @@ impl TableSchema for CounterTable { pub struct IndexCounter { this_node: Uuid, + // TODO: migrate to TypedTree local_counter: db::Tree, pub table: Arc, TableShardedReplication>>, } diff --git a/src/model/k2v/rpc.rs b/src/model/k2v/rpc.rs index 7d2bede3..d14308df 100644 --- a/src/model/k2v/rpc.rs +++ b/src/model/k2v/rpc.rs @@ -84,6 +84,7 @@ pub struct K2VRpcHandler { // Using a mutex on the local_timestamp_tree is not strictly necessary, // but it helps to not try to do several inserts at the same time, // which would create transaction conflicts and force many useless retries. + // TODO: migrate to TypedTree local_timestamp_tree: Mutex, endpoint: Arc>, diff --git a/src/table/data.rs b/src/table/data.rs index 86bf7b93..591e9eea 100644 --- a/src/table/data.rs +++ b/src/table/data.rs @@ -26,15 +26,20 @@ pub struct TableData { pub instance: F, pub replication: R, + // TODO: migrate to TypedTree pub store: db::Tree, + // TODO: migrate to TypedTree pub(crate) merkle_tree: db::Tree, + // TODO: migrate to TypedTree pub(crate) merkle_todo: db::Tree, pub(crate) merkle_todo_notify: Notify, + // TODO: migrate to TypedTree pub(crate) insert_queue: db::Tree, pub(crate) insert_queue_notify: Arc, + // TODO: migrate to TypedTree pub(crate) gc_todo: db::Tree, pub(crate) metrics: TableMetrics,