diff options
author | Alex Auvolat <alex@adnab.me> | 2020-04-08 23:47:34 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-04-08 23:47:34 +0200 |
commit | a450103ed038d0838b1a1336ffd3a011abdd88a4 (patch) | |
tree | d9753bd60dae22d856eda2d0ef1e4a3e2c39aca3 /src/version_table.rs | |
parent | cc580da0aef95bcb94bd2ce602258d0d18388969 (diff) | |
download | garage-a450103ed038d0838b1a1336ffd3a011abdd88a4.tar.gz garage-a450103ed038d0838b1a1336ffd3a011abdd88a4.zip |
Work & TODO
Diffstat (limited to 'src/version_table.rs')
-rw-r--r-- | src/version_table.rs | 7 |
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!() } |