diff options
author | Alex Auvolat <alex@adnab.me> | 2020-12-05 19:23:46 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-12-05 19:23:46 +0100 |
commit | 4a5bbbb81088c9bd25bbe142f67daf4669b6538e (patch) | |
tree | 6dda907def43b63d0f44426ea44df29309e9ab24 /src/table/table.rs | |
parent | dfbc280c37c6725f58224d2c0d31df9e4a9ff7b4 (diff) | |
download | garage-bug/etag.tar.gz garage-bug/etag.zip |
Propose ETag fixbug/etag
Diffstat (limited to 'src/table/table.rs')
-rw-r--r-- | src/table/table.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/table/table.rs b/src/table/table.rs index 5dfee3c8..acb46325 100644 --- a/src/table/table.rs +++ b/src/table/table.rs @@ -391,7 +391,8 @@ where let (old_entry, new_entry) = self.store.transaction(|db| { let (old_entry, new_entry) = match db.get(&tree_key)? { Some(prev_bytes) => { - let old_entry = self.decode_entry(&prev_bytes) + let old_entry = self + .decode_entry(&prev_bytes) .map_err(sled::ConflictableTransactionError::Abort)?; let mut new_entry = old_entry.clone(); new_entry.merge(&update); |