summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2008-01-31 23:42:46 +0000
committerChris Wilson <chris+github@qwirx.com>2008-01-31 23:42:46 +0000
commit71fc8d094e57a344d98984cf71f0a38c59ff9314 (patch)
treedb23250c300d44986b4144c372c963a4c8275611
parentdc559421991c27ed5d9651cff71cdc258495c4b6 (diff)
Add object cache debugging traces to bbstored.
-rw-r--r--bin/bbstored/BackupContext.cpp8
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);