aboutsummaryrefslogtreecommitdiff
path: root/src/model/block.rs
diff options
context:
space:
mode:
authorTrinity Pointard <trinity.pointard@gmail.com>2021-04-07 13:39:34 +0200
committerTrinity Pointard <trinity.pointard@gmail.com>2021-04-07 13:39:34 +0200
commit718ae005486baeed358d56cc7cd319fedd1e76eb (patch)
treeba5e6e91380236e21f697381277817049d6e6d58 /src/model/block.rs
parentc8906f200bf907272bf9fba7d183df4332fa085b (diff)
downloadgarage-718ae005486baeed358d56cc7cd319fedd1e76eb.tar.gz
garage-718ae005486baeed358d56cc7cd319fedd1e76eb.zip
change some more comments and revert changes on TableSchema
Diffstat (limited to 'src/model/block.rs')
-rw-r--r--src/model/block.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/model/block.rs b/src/model/block.rs
index 89685630..5f428fe1 100644
--- a/src/model/block.rs
+++ b/src/model/block.rs
@@ -250,7 +250,6 @@ impl BlockManager {
}
/// Decrement the number of time a block is used
- // when counter reach 0, it seems not put to resync which I assume put it to gc?
pub fn block_decref(&self, hash: &Hash) -> Result<(), Error> {
let new_rc = self.rc.update_and_fetch(&hash, |old| {
let old_v = old.map(u64_from_be_bytes).unwrap_or(0);