[Box Backup-commit] COMMIT r2146 - box/trunk/lib/raidfile

boxbackup-dev at fluffy.co.uk boxbackup-dev at fluffy.co.uk
Wed Apr 9 22:05:43 BST 2008


Author: chris
Date: 2008-04-09 21:05:43 +0000 (Wed, 09 Apr 2008)
New Revision: 2146

Modified:
   box/trunk/lib/raidfile/RaidFileRead.cpp
Log:
Add an error message giving the file name when an expected raidfile
does not exist, to help server operators to figure out what's wrong.


Modified: box/trunk/lib/raidfile/RaidFileRead.cpp
===================================================================
--- box/trunk/lib/raidfile/RaidFileRead.cpp	2008-04-09 21:04:37 UTC (rev 2145)
+++ box/trunk/lib/raidfile/RaidFileRead.cpp	2008-04-09 21:05:43 UTC (rev 2146)
@@ -1021,6 +1021,7 @@
 	RaidFileUtil::ExistType existance = RaidFileUtil::RaidFileExists(rdiscSet, Filename, &startDisc, &existingFiles, pRevisionID);
 	if(existance == RaidFileUtil::NoFile)
 	{
+		BOX_ERROR("Expected raidfile " << Filename << " does not exist");
 		THROW_EXCEPTION(RaidFileException, RaidFileDoesntExist)
 	}
 	else if(existance == RaidFileUtil::NonRaid)




More information about the Boxbackup-commit mailing list