[Box Backup-commit] COMMIT r2784 - box/trunk/bin/bbackupd

subversion at boxbackup.org subversion at boxbackup.org
Thu Oct 7 14:50:43 BST 2010


Author: chris
Date: 2010-10-07 14:50:42 +0100 (Thu, 07 Oct 2010)
New Revision: 2784

Modified:
   box/trunk/bin/bbackupd/BackupDaemon.cpp
Log:
Quick fix to stop deletion of redundant locations when 
DeleteRedundantLocationsAfter is set to zero, which is supposed to mean 
that it's disabled.


Modified: box/trunk/bin/bbackupd/BackupDaemon.cpp
===================================================================
--- box/trunk/bin/bbackupd/BackupDaemon.cpp	2010-10-07 13:44:04 UTC (rev 2783)
+++ box/trunk/bin/bbackupd/BackupDaemon.cpp	2010-10-07 13:50:42 UTC (rev 2784)
@@ -1731,8 +1731,15 @@
 	}
 	
 	// Any entries in the root directory which need deleting?
-	if(dir.GetNumberOfEntries() > 0)
+	if(dir.GetNumberOfEntries() > 0 &&
+		mDeleteRedundantLocationsAfter == 0)
 	{
+		BOX_NOTICE(dir.GetNumberOfEntries() << " redundant locations "
+			"in root directory found, but will not delete because "
+			"DeleteRedundantLocationsAfter = 0");
+	}
+	else if(dir.GetNumberOfEntries() > 0)
+	{
 		box_time_t now = GetCurrentBoxTime();
 
 		// This should reset the timer if the list of unused




More information about the Boxbackup-commit mailing list