aboutsummaryrefslogtreecommitdiff
path: root/src/version_table.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-04-08 23:47:34 +0200
committerAlex Auvolat <alex@adnab.me>2020-04-08 23:47:34 +0200
commita450103ed038d0838b1a1336ffd3a011abdd88a4 (patch)
treed9753bd60dae22d856eda2d0ef1e4a3e2c39aca3 /src/version_table.rs
parentcc580da0aef95bcb94bd2ce602258d0d18388969 (diff)
downloadgarage-a450103ed038d0838b1a1336ffd3a011abdd88a4.tar.gz
garage-a450103ed038d0838b1a1336ffd3a011abdd88a4.zip
Work & TODO
Diffstat (limited to 'src/version_table.rs')
-rw-r--r--src/version_table.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/version_table.rs b/src/version_table.rs
index 86086421..e8360cd1 100644
--- a/src/version_table.rs
+++ b/src/version_table.rs
@@ -37,13 +37,16 @@ pub struct VersionTable {
pub garage: RwLock<Option<Arc<Garage>>>,
}
-impl KeyHash for VersionMetaKey {
+impl TableKey for VersionMetaKey {
fn hash(&self) -> Hash {
hash(self.bucket.as_bytes())
}
}
-impl ValueMerge for VersionMetaValue {
+impl TableValue for VersionMetaValue {
+ fn sort_key(&self) -> Vec<u8> {
+ vec![]
+ }
fn merge(&mut self, other: &Self) {
unimplemented!()
}