summaryrefslogtreecommitdiff
path: root/lib/backupstore/HousekeepStoreAccount.cpp
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2014-02-10 09:28:39 +0000
committerChris Wilson <chris+github@qwirx.com>2014-02-10 09:28:39 +0000
commit13e4cc7290b01507ec00f725f5f888972822fd02 (patch)
tree3343966439a5327271a92377595ce6b433836420 /lib/backupstore/HousekeepStoreAccount.cpp
parent424c2c8a3cf322c228d2ac45cfeefb237dbd2e33 (diff)
Fix testbackupstore, apart from wrong accounting for old files.
Diffstat (limited to 'lib/backupstore/HousekeepStoreAccount.cpp')
-rw-r--r--lib/backupstore/HousekeepStoreAccount.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/backupstore/HousekeepStoreAccount.cpp b/lib/backupstore/HousekeepStoreAccount.cpp
index 08e846c2..da4d9594 100644
--- a/lib/backupstore/HousekeepStoreAccount.cpp
+++ b/lib/backupstore/HousekeepStoreAccount.cpp
@@ -51,6 +51,7 @@ HousekeepStoreAccount::HousekeepStoreAccount(int AccountID,
mDeletionSizeTarget(0),
mPotentialDeletionsTotalSize(0),
mMaxSizeInPotentialDeletions(0),
+ mErrorCount(0),
mBlocksUsed(0),
mBlocksInOldFiles(0),
mBlocksInDeletedFiles(0),
@@ -1026,7 +1027,7 @@ void HousekeepStoreAccount::DeleteEmptyDirectory(int64_t dirId,
mBlocksInDirectoriesDelta += adjust;
}
- if (mapNewRefs->RemoveReference(dir.GetObjectID()))
+ if (!mapNewRefs->RemoveReference(dir.GetObjectID()))
{
// Still referenced
BOX_TRACE("Housekeeping spared empty deleted dir " <<