summaryrefslogtreecommitdiff
path: root/lib/backupstore/BackupStoreCheck2.cpp
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2011-02-23 23:51:29 +0000
committerChris Wilson <chris+github@qwirx.com>2011-02-23 23:51:29 +0000
commit71f716d4dfb3402d520ab958cc468605342feb0f (patch)
tree11732a10ff504d0cfda993cf6b552c2ba1fec8ab /lib/backupstore/BackupStoreCheck2.cpp
parent51b1708d9f12d830c30e18681951aa1bd7045da6 (diff)
Debugging for Sune Molgaard's issue with non-existent files being
detected as unattached and crashing later in CheckUnattachedObjects().
Diffstat (limited to 'lib/backupstore/BackupStoreCheck2.cpp')
-rw-r--r--lib/backupstore/BackupStoreCheck2.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/backupstore/BackupStoreCheck2.cpp b/lib/backupstore/BackupStoreCheck2.cpp
index a17d7e5c..c6262cb2 100644
--- a/lib/backupstore/BackupStoreCheck2.cpp
+++ b/lib/backupstore/BackupStoreCheck2.cpp
@@ -157,6 +157,16 @@ void BackupStoreCheck::CheckUnattachedObjects()
int64_t diffFromObjectID = 0;
std::string filename;
StoreStructure::MakeObjectFilename(pblock->mID[e], mStoreRoot, mDiscSetNumber, filename, false /* don't attempt to make sure the dir exists */);
+
+ // Debugging for Sune Molgaard's issue with non-existent files being
+ // detected as unattached and crashing later in CheckUnattachedObjects()
+ if (pblock->mID[e] == 0x90c1a)
+ {
+ BOX_INFO("Trying to open unattached " <<
+ BOX_FORMAT_OBJECTID(pblock->mID[e]) <<
+ " from " << filename << " on " << mDiscSetNumber);
+ }
+
// The easiest way to do this is to verify it again. Not such a bad penalty, because
// this really shouldn't be done very often.
{