diff options
author | Chris Wilson <chris+github@qwirx.com> | 2014-10-31 22:09:46 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2014-10-31 22:09:46 +0000 |
commit | d01f128b4580f312cd7ca7bf2329d80cdaced1b4 (patch) | |
tree | 3b449a8fb5491c8b274872fede6792ae92eafb05 /lib/backupstore/BackupStoreRefCountDatabase.h | |
parent | e8efeb785c158581be729aa1dee122f50789ac86 (diff) |
Repair the refcount database while checking accounts for errors.
Normally this will be done by housekeeping anyway, so it's not that useful,
but it's good to check for it in tests, especially when testing
BackupStoreCheck's ability to repair bad things that happened to the store
when they involve references.
Diffstat (limited to 'lib/backupstore/BackupStoreRefCountDatabase.h')
-rw-r--r-- | lib/backupstore/BackupStoreRefCountDatabase.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/backupstore/BackupStoreRefCountDatabase.h b/lib/backupstore/BackupStoreRefCountDatabase.h index 797f05dc..915653a4 100644 --- a/lib/backupstore/BackupStoreRefCountDatabase.h +++ b/lib/backupstore/BackupStoreRefCountDatabase.h @@ -87,6 +87,7 @@ public: void AddReference(int64_t ObjectID); // RemoveReference returns false if refcount drops to zero bool RemoveReference(int64_t ObjectID); + int ReportChangesTo(BackupStoreRefCountDatabase& rOldRefs); private: static std::string GetFilename(const BackupStoreAccountDatabase::Entry& |