summaryrefslogtreecommitdiff
path: root/bin/bbstored
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2012-02-02 22:17:40 +0000
committerChris Wilson <chris+github@qwirx.com>2012-02-02 22:17:40 +0000
commita72010d60e5573ff3739e2dea6a25ebbdc6449bb (patch)
treebfd27672a8d1a348965643da658b3c743179ce63 /bin/bbstored
parent7a2a5d04f33f2747dc54c4152a4e413909d274a4 (diff)
Log which account we're housekeeping, to help debug housekeeping crashes/failures.
Diffstat (limited to 'bin/bbstored')
-rw-r--r--bin/bbstored/HousekeepStoreAccount.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/bbstored/HousekeepStoreAccount.cpp b/bin/bbstored/HousekeepStoreAccount.cpp
index 5d4291de..166a58e6 100644
--- a/bin/bbstored/HousekeepStoreAccount.cpp
+++ b/bin/bbstored/HousekeepStoreAccount.cpp
@@ -87,6 +87,9 @@ HousekeepStoreAccount::~HousekeepStoreAccount()
// --------------------------------------------------------------------------
void HousekeepStoreAccount::DoHousekeeping(bool KeepTryingForever)
{
+ BOX_TRACE("Starting housekeeping on account " <<
+ BOX_FORMAT_OBJECTID(mAccountID));
+
// Attempt to lock the account
std::string writeLockFilename;
StoreStructure::MakeWriteLockFilename(mStoreRoot, mStoreDiscSet,
@@ -355,6 +358,9 @@ void HousekeepStoreAccount::DoHousekeeping(bool KeepTryingForever)
// Explicity release the lock (would happen automatically on
// going out of scope, included for code clarity)
writeLock.ReleaseLock();
+
+ BOX_TRACE("Finished housekeeping on account " <<
+ BOX_FORMAT_OBJECTID(mAccountID));
}