[Box Backup-commit] COMMIT r2079 - box/trunk/bin/bbstored
boxbackup-dev at fluffy.co.uk
boxbackup-dev at fluffy.co.uk
Thu Jan 31 23:42:46 GMT 2008
Author: chris
Date: 2008-01-31 23:42:46 +0000 (Thu, 31 Jan 2008)
New Revision: 2079
Modified:
box/trunk/bin/bbstored/BackupContext.cpp
Log:
Add object cache debugging traces to bbstored.
Modified: box/trunk/bin/bbstored/BackupContext.cpp
===================================================================
--- box/trunk/bin/bbstored/BackupContext.cpp 2008-01-29 19:40:16 UTC (rev 2078)
+++ box/trunk/bin/bbstored/BackupContext.cpp 2008-01-31 23:42:46 UTC (rev 2079)
@@ -277,9 +277,17 @@
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);
More information about the Boxbackup-commit
mailing list