mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-08-31 09:18:29 +00:00
Add TODO comment for migration to typedtree
This commit is contained in:
@@ -163,6 +163,7 @@ impl<T: CountedItem> TableSchema for CounterTable<T> {
|
|||||||
|
|
||||||
pub struct IndexCounter<T: CountedItem> {
|
pub struct IndexCounter<T: CountedItem> {
|
||||||
this_node: Uuid,
|
this_node: Uuid,
|
||||||
|
// TODO: migrate to TypedTree
|
||||||
local_counter: db::Tree,
|
local_counter: db::Tree,
|
||||||
pub table: Arc<Table<CounterTable<T>, TableShardedReplication>>,
|
pub table: Arc<Table<CounterTable<T>, TableShardedReplication>>,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -84,6 +84,7 @@ pub struct K2VRpcHandler {
|
|||||||
// Using a mutex on the local_timestamp_tree is not strictly necessary,
|
// 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,
|
// but it helps to not try to do several inserts at the same time,
|
||||||
// which would create transaction conflicts and force many useless retries.
|
// which would create transaction conflicts and force many useless retries.
|
||||||
|
// TODO: migrate to TypedTree
|
||||||
local_timestamp_tree: Mutex<db::Tree>,
|
local_timestamp_tree: Mutex<db::Tree>,
|
||||||
|
|
||||||
endpoint: Arc<Endpoint<K2VRpc, Self>>,
|
endpoint: Arc<Endpoint<K2VRpc, Self>>,
|
||||||
|
|||||||
@@ -26,15 +26,20 @@ pub struct TableData<F: TableSchema, R: TableReplication> {
|
|||||||
pub instance: F,
|
pub instance: F,
|
||||||
pub replication: R,
|
pub replication: R,
|
||||||
|
|
||||||
|
// TODO: migrate to TypedTree
|
||||||
pub store: db::Tree,
|
pub store: db::Tree,
|
||||||
|
|
||||||
|
// TODO: migrate to TypedTree
|
||||||
pub(crate) merkle_tree: db::Tree,
|
pub(crate) merkle_tree: db::Tree,
|
||||||
|
// TODO: migrate to TypedTree
|
||||||
pub(crate) merkle_todo: db::Tree,
|
pub(crate) merkle_todo: db::Tree,
|
||||||
pub(crate) merkle_todo_notify: Notify,
|
pub(crate) merkle_todo_notify: Notify,
|
||||||
|
|
||||||
|
// TODO: migrate to TypedTree
|
||||||
pub(crate) insert_queue: db::Tree,
|
pub(crate) insert_queue: db::Tree,
|
||||||
pub(crate) insert_queue_notify: Arc<Notify>,
|
pub(crate) insert_queue_notify: Arc<Notify>,
|
||||||
|
|
||||||
|
// TODO: migrate to TypedTree
|
||||||
pub(crate) gc_todo: db::Tree,
|
pub(crate) gc_todo: db::Tree,
|
||||||
|
|
||||||
pub(crate) metrics: TableMetrics,
|
pub(crate) metrics: TableMetrics,
|
||||||
|
|||||||
Reference in New Issue
Block a user