aboutsummaryrefslogtreecommitdiff
path: root/src/db/lmdb_adapter.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2024-03-08 14:59:56 +0100
committerAlex Auvolat <alex@adnab.me>2024-03-08 15:09:57 +0100
commit05c92204ecab87540806073ac4deedfd58519240 (patch)
tree56e82bc1085e956ea0b2b622c7967d0991113c87 /src/db/lmdb_adapter.rs
parent44454aac012cbef9158110f2352301ffcfaf31c7 (diff)
downloadgarage-05c92204ecab87540806073ac4deedfd58519240.tar.gz
garage-05c92204ecab87540806073ac4deedfd58519240.zip
[rm-sled] Remove counted_tree_hack
Diffstat (limited to 'src/db/lmdb_adapter.rs')
-rw-r--r--src/db/lmdb_adapter.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/db/lmdb_adapter.rs b/src/db/lmdb_adapter.rs
index 59fa132d..99b29a74 100644
--- a/src/db/lmdb_adapter.rs
+++ b/src/db/lmdb_adapter.rs
@@ -121,10 +121,6 @@ impl IDb for LmdbDb {
Ok(tree.len(&tx)?.try_into().unwrap())
}
- fn fast_len(&self, tree: usize) -> Result<Option<usize>> {
- Ok(Some(self.len(tree)?))
- }
-
fn insert(&self, tree: usize, key: &[u8], value: &[u8]) -> Result<Option<Value>> {
let tree = self.get_tree(tree)?;
let mut tx = self.db.write_txn()?;