[Box Backup-commit] COMMIT r1382 - box/chris/general/bin/bbstored

boxbackup-dev@fluffy.co.uk boxbackup-dev@fluffy.co.uk
Thu, 08 Mar 2007 23:00:22 +0000


Author: chris
Date: 2007-03-08 23:00:21 +0000 (Thu, 08 Mar 2007)
New Revision: 1382

Modified:
   box/chris/general/bin/bbstored/BBStoreDHousekeeping.cpp
Log:
Only do housekeeping in idle time on Win32; other platforms fork a separate
process to do it.


Modified: box/chris/general/bin/bbstored/BBStoreDHousekeeping.cpp
===================================================================
--- box/chris/general/bin/bbstored/BBStoreDHousekeeping.cpp	2007-03-08 22:59:42 UTC (rev 1381)
+++ box/chris/general/bin/bbstored/BBStoreDHousekeeping.cpp	2007-03-08 23:00:21 UTC (rev 1382)
@@ -152,6 +152,7 @@
 
 void BackupStoreDaemon::OnIdle()
 {
+	#ifdef WIN32
 	if (!mHousekeepingInited)
 	{
 		HousekeepingInit();
@@ -159,6 +160,7 @@
 	}
 
 	RunHousekeepingIfNeeded();
+	#endif
 }
 
 // --------------------------------------------------------------------------