summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 0259461e..02e68857 100644
--- a/lib/backupstore/HousekeepStoreAccount.cpp
+++ b/lib/backupstore/HousekeepStoreAccount.cpp
@@ -864,7 +864,8 @@ BackupStoreRefCountDatabase::refcount_t HousekeepStoreAccount::DeleteFile(
}
// Drop reference count by one. Must now be zero, to delete the file.
- ASSERT(!mapNewRefs->RemoveReference(ObjectID))
+ bool remaining_refs = mapNewRefs->RemoveReference(ObjectID);
+ ASSERT(!remaining_refs);
// Delete from disc
BOX_TRACE("Removing unreferenced object " <<