From a72010d60e5573ff3739e2dea6a25ebbdc6449bb Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 2 Feb 2012 22:17:40 +0000 Subject: Log which account we're housekeeping, to help debug housekeeping crashes/failures. --- bin/bbstored/HousekeepStoreAccount.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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)); } -- cgit v1.2.3