summaryrefslogtreecommitdiff
path: root/lib/backupstore
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2012-11-17 19:59:51 +0000
committerChris Wilson <chris+github@qwirx.com>2012-11-17 19:59:51 +0000
commit69147089fa278f1225ae5fb29c87a59009dcc900 (patch)
treeaecf170d7af6acaf909b161b094dc8bf023b48b9 /lib/backupstore
parent1098297e0acfb37715336f1bbd8cfe548a6e038e (diff)
Fix duplicate tagging of housekeeping messages.
Diffstat (limited to 'lib/backupstore')
-rw-r--r--lib/backupstore/HousekeepStoreAccount.cpp5
-rw-r--r--lib/backupstore/HousekeepStoreAccount.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/lib/backupstore/HousekeepStoreAccount.cpp b/lib/backupstore/HousekeepStoreAccount.cpp
index 311ae433..86eb1059 100644
--- a/lib/backupstore/HousekeepStoreAccount.cpp
+++ b/lib/backupstore/HousekeepStoreAccount.cpp
@@ -65,6 +65,9 @@ HousekeepStoreAccount::HousekeepStoreAccount(int AccountID,
mRefCountsAdjusted(0),
mCountUntilNextInterprocessMsgCheck(POLL_INTERPROCESS_MSG_CHECK_FREQUENCY)
{
+ std::ostringstream tag;
+ tag << "hk/" << BOX_FORMAT_ACCOUNT(mAccountID);
+ mTagWithClientID.Change(tag.str());
}
// --------------------------------------------------------------------------
@@ -128,7 +131,7 @@ bool HousekeepStoreAccount::DoHousekeeping(bool KeepTryingForever)
std::ostringstream tag;
tag << "hk/" << BOX_FORMAT_ACCOUNT(mAccountID) << "/" <<
info->GetAccountName();
- Logging::Tagger tagWithClientID(tag.str());
+ mTagWithClientID.Change(tag.str());
// Calculate how much should be deleted
mDeletionSizeTarget = info->GetBlocksUsed() - info->GetBlocksSoftLimit();
diff --git a/lib/backupstore/HousekeepStoreAccount.h b/lib/backupstore/HousekeepStoreAccount.h
index 61cff868..cfa05a2e 100644
--- a/lib/backupstore/HousekeepStoreAccount.h
+++ b/lib/backupstore/HousekeepStoreAccount.h
@@ -105,6 +105,8 @@ private:
// Poll frequency
int mCountUntilNextInterprocessMsgCheck;
+
+ Logging::Tagger mTagWithClientID;
};
#endif // HOUSEKEEPSTOREACCOUNT__H