summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2012-11-25 11:18:29 +0000
committerLars Wirzenius <liw@liw.fi>2012-11-25 11:18:29 +0000
commit2bd8483b06f581991836b48864b6ecbdd3c1b99c (patch)
treeff1b8d1c3589eceb62589ee1b4f97297f0db8372
parent97c7f7d84a5127bcb2cea15b319d52009f4333d2 (diff)
downloadlarch-2bd8483b06f581991836b48864b6ecbdd3c1b99c.tar.gz
Set refcount correctly
-rwxr-xr-xlarch/fsck.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/larch/fsck.py b/larch/fsck.py
index e9d0f6e..7ca0111 100755
--- a/larch/fsck.py
+++ b/larch/fsck.py
@@ -106,7 +106,8 @@ class CheckRefcounts(WorkItem):
refcount,
self.fsck.refcounts[node_id]))
if self.fsck.fix:
- self.fsck.forest.node_store.set_refcount(node_id, refcount)
+ self.fsck.forest.node_store.set_refcount(
+ node_id, self.fsck.refcounts[node_id])
class CommitForest(WorkItem):