diff options
author | Alex Auvolat <alex@adnab.me> | 2022-06-03 14:00:13 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-06-03 14:00:13 +0200 |
commit | d3d7df098b4188ea26d3cec29f2cc226d55d783e (patch) | |
tree | 35d6ab41aed5a14e456b20169563fd59bc1a8758 /src/block | |
parent | 3d18c9e183a1062d797a9cf1a9a6e3b1e6ae7853 (diff) | |
download | garage-d3d7df098b4188ea26d3cec29f2cc226d55d783e.tar.gz garage-d3d7df098b4188ea26d3cec29f2cc226d55d783e.zip |
small fixes
Diffstat (limited to 'src/block')
-rw-r--r-- | src/block/rc.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/block/rc.rs b/src/block/rc.rs index f6d8c2aa..7d85f67e 100644 --- a/src/block/rc.rs +++ b/src/block/rc.rs @@ -26,9 +26,7 @@ impl BlockRc { Some(x) => { tx.insert(&self.rc, &hash, x)?; } - None => { - tx.remove(&self.rc, &hash)?; - } + None => unreachable!(), }; tx.commit(old_rc) })?; |