diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/backupstore/BackupStoreCheck.cpp | 19 | ||||
-rw-r--r-- | lib/backupstore/BackupStoreCheck2.cpp | 10 |
2 files changed, 28 insertions, 1 deletions
diff --git a/lib/backupstore/BackupStoreCheck.cpp b/lib/backupstore/BackupStoreCheck.cpp index bd9171c6..935a55c1 100644 --- a/lib/backupstore/BackupStoreCheck.cpp +++ b/lib/backupstore/BackupStoreCheck.cpp @@ -464,6 +464,14 @@ bool BackupStoreCheck::CheckAndAddObject(int64_t ObjectID, int64_t containerID = -1; int64_t size = -1; + // Debugging for Sune Molgaard's issue with non-existent files being + // detected as unattached and crashing later in CheckUnattachedObjects() + if (ObjectID == 0x90c1a) + { + BOX_INFO("Trying to open " << BOX_FORMAT_OBJECTID(ObjectID) << + " from " << rFilename << " on disc " << mDiscSetNumber); + } + try { // Open file @@ -522,7 +530,16 @@ bool BackupStoreCheck::CheckAndAddObject(int64_t ObjectID, { return false; } - + + // Debugging for Sune Molgaard's issue with non-existent files being + // detected as unattached and crashing later in CheckUnattachedObjects() + if (ObjectID == 0x90c1a) + { + BOX_INFO("Adding ID " << BOX_FORMAT_OBJECTID(ObjectID) << + " contained by " << BOX_FORMAT_OBJECTID(containerID) << + " with size " << size << " and isFile " << isFile); + } + // Add to list of IDs known about AddID(ObjectID, containerID, size, isFile); 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. { |