aboutsummaryrefslogtreecommitdiff
path: root/src/model/k2v/rpc.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-12-14 10:48:49 +0100
committerAlex Auvolat <alex@adnab.me>2022-12-14 10:48:49 +0100
commitf8e528c15de0c9d31c16e5cd8e58f99f4132f103 (patch)
treeac8224d7256b01cbaa252fbc2382afa31daba474 /src/model/k2v/rpc.rs
parentd1279e04f3550eae2eb5e0f25efbdf69b42fbeb9 (diff)
downloadgarage-f8e528c15de0c9d31c16e5cd8e58f99f4132f103.tar.gz
garage-f8e528c15de0c9d31c16e5cd8e58f99f4132f103.zip
Small refactor of tables internals
Diffstat (limited to 'src/model/k2v/rpc.rs')
-rw-r--r--src/model/k2v/rpc.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/model/k2v/rpc.rs b/src/model/k2v/rpc.rs
index a74df277..f64a7984 100644
--- a/src/model/k2v/rpc.rs
+++ b/src/model/k2v/rpc.rs
@@ -273,14 +273,9 @@ impl K2VRpcHandler {
}
fn local_insert(&self, item: &InsertedItem) -> Result<Option<K2VItem>, Error> {
- let tree_key = self
- .item_table
- .data
- .tree_key(&item.partition, &item.sort_key);
-
self.item_table
.data
- .update_entry_with(&tree_key[..], |ent| {
+ .update_entry_with(&item.partition, &item.sort_key, |ent| {
let mut ent = ent.unwrap_or_else(|| {
K2VItem::new(
item.partition.bucket_id,