diff options
author | Alex Auvolat <alex@adnab.me> | 2022-06-08 10:41:22 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-06-08 10:41:22 +0200 |
commit | 425fe56be8226615a366a7131e4f52ecac81371a (patch) | |
tree | e43bdaf58455980746a8484282b8ca04dc13c1cd /src/model/k2v/counter_table.rs | |
parent | b44d3fc796484a50cd6854f20c9b46e5fddedc9d (diff) | |
download | garage-425fe56be8226615a366a7131e4f52ecac81371a.tar.gz garage-425fe56be8226615a366a7131e4f52ecac81371a.zip |
Some refactoring of the index counter API
Diffstat (limited to 'src/model/k2v/counter_table.rs')
-rw-r--r-- | src/model/k2v/counter_table.rs | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/model/k2v/counter_table.rs b/src/model/k2v/counter_table.rs deleted file mode 100644 index 4856eb2b..00000000 --- a/src/model/k2v/counter_table.rs +++ /dev/null @@ -1,20 +0,0 @@ -use garage_util::data::*; - -use crate::index_counter::*; - -pub const ENTRIES: &str = "entries"; -pub const CONFLICTS: &str = "conflicts"; -pub const VALUES: &str = "values"; -pub const BYTES: &str = "bytes"; - -#[derive(PartialEq, Clone)] -pub struct K2VCounterTable; - -impl CounterSchema for K2VCounterTable { - const NAME: &'static str = "k2v_index_counter"; - - // Partition key = bucket id - type P = Uuid; - // Sort key = K2V item's partition key - type S = String; -} |