summaryrefslogtreecommitdiff
path: root/lib/backupstore
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
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')
-rw-r--r--lib/backupstore/BackupStoreCheck.cpp19
-rw-r--r--lib/backupstore/BackupStoreCheck2.cpp10
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.
{