diff options
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); |