diff options
author | Chris Wilson <chris+github@qwirx.com> | 2009-06-28 19:29:10 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2009-06-28 19:29:10 +0000 |
commit | d6dffc358c3abc3d133f88b6f79bdbd58db1b66d (patch) | |
tree | 7cbf1d1b61eb22cf0fce3b902145309528a91b98 /bin/bbstored/BBStoreDHousekeeping.cpp | |
parent | 88aa4bf2dbeac3fae8d0ad9e59ceefa83382d236 (diff) |
Make housekeeping check the object reference counts and fix them if
they're wrong.
Add a callback interface to decouple housekeeping from the
BackupStoreDaemon, allowing it to be called directly in tests.
Allow housekeeping callers to request it to keep trying forever to get a
lock on the account if it's busy.
Diffstat (limited to 'bin/bbstored/BBStoreDHousekeeping.cpp')
-rw-r--r-- | bin/bbstored/BBStoreDHousekeeping.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/bbstored/BBStoreDHousekeeping.cpp b/bin/bbstored/BBStoreDHousekeeping.cpp index 1c1767ca..7f799008 100644 --- a/bin/bbstored/BBStoreDHousekeeping.cpp +++ b/bin/bbstored/BBStoreDHousekeeping.cpp @@ -108,7 +108,8 @@ void BackupStoreDaemon::RunHousekeepingIfNeeded() mpAccounts->GetAccountRoot(*i, rootDir, discSet); // Do housekeeping on this account - HousekeepStoreAccount housekeeping(*i, rootDir, discSet, *this); + HousekeepStoreAccount housekeeping(*i, rootDir, + discSet, this); housekeeping.DoHousekeeping(); } } |