diff options
author | Chris Wilson <chris+github@qwirx.com> | 2011-02-23 23:51:29 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2011-02-23 23:51:29 +0000 |
commit | 71f716d4dfb3402d520ab958cc468605342feb0f (patch) | |
tree | 11732a10ff504d0cfda993cf6b552c2ba1fec8ab /lib/backupstore/BackupStoreCheck.cpp | |
parent | 51b1708d9f12d830c30e18681951aa1bd7045da6 (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/BackupStoreCheck.cpp')
-rw-r--r-- | lib/backupstore/BackupStoreCheck.cpp | 19 |
1 files changed, 18 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); |