diff options
author | Chris Wilson <chris+github@qwirx.com> | 2008-01-31 23:42:46 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2008-01-31 23:42:46 +0000 |
commit | 71fc8d094e57a344d98984cf71f0a38c59ff9314 (patch) | |
tree | db23250c300d44986b4144c372c963a4c8275611 /bin/bbstored | |
parent | dc559421991c27ed5d9651cff71cdc258495c4b6 (diff) |
Add object cache debugging traces to bbstored.
Diffstat (limited to 'bin/bbstored')
-rw-r--r-- | bin/bbstored/BackupContext.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/bbstored/BackupContext.cpp b/bin/bbstored/BackupContext.cpp index 16388099..f956b1a8 100644 --- a/bin/bbstored/BackupContext.cpp +++ b/bin/bbstored/BackupContext.cpp @@ -277,9 +277,17 @@ BackupStoreDirectory &BackupContext::GetDirectoryInternal(int64_t ObjectID) if(revID == item->second->GetRevisionID()) { // Looks good... return the cached object + BOX_TRACE("Returning object " << + BOX_FORMAT_OBJECTID(ObjectID) << + " from cache, modtime = " << revID); return *(item->second); } + BOX_TRACE("Refreshing object " << + BOX_FORMAT_OBJECTID(ObjectID) << + " in cache, modtime changed from " << + item->second->GetRevisionID() << " to " << revID); + // Delete this cached object delete item->second; mDirectoryCache.erase(item); |