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

boxbackup-dev at boxbackup.org boxbackup-dev at boxbackup.org
Fri Dec 26 23:58:00 GMT 2008


Author: chris
Date: 2008-12-26 23:57:59 +0000 (Fri, 26 Dec 2008)
New Revision: 2411

Modified:
   box/trunk/lib/raidfile/RaidFileController.cpp
Log:
Allow reinitialising the RaidFileController by removing any existing 
disc sets before adding new ones.


Modified: box/trunk/lib/raidfile/RaidFileController.cpp
===================================================================
--- box/trunk/lib/raidfile/RaidFileController.cpp	2008-12-26 20:36:19 UTC (rev 2410)
+++ box/trunk/lib/raidfile/RaidFileController.cpp	2008-12-26 23:57:59 UTC (rev 2411)
@@ -108,6 +108,10 @@
 		BOX_ERROR("RaidFile configuration file errors: " << err);
 		THROW_EXCEPTION(RaidFileException, BadConfigFile)
 	}
+
+	// Allow reinitializing the controller by remove any existing
+	// disc sets. Used by Boxi unit tests.
+	mSetList.clear();
 	
 	// Use the values
 	int expectedSetNum = 0;




More information about the Boxbackup-commit mailing list