[rm-sled] Remove counted_tree_hack

This commit is contained in:
Alex Auvolat
2024-03-08 14:59:56 +01:00
parent 44454aac01
commit 05c92204ec
14 changed files with 48 additions and 247 deletions
-4
View File
@@ -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()?;