[Box Backup-commit] COMMIT r1108 - box/trunk/test/backupstorepatch

boxbackup-dev at fluffy.co.uk boxbackup-dev at fluffy.co.uk
Fri Oct 27 20:01:56 BST 2006


Author: chris
Date: 2006-10-27 20:01:56 +0100 (Fri, 27 Oct 2006)
New Revision: 1108

Modified:
   box/trunk/test/backupstorepatch/testbackupstorepatch.cpp
Log:
Cannot signal bbstored to housekeep immediately on Win32, so just wait
for it to happen.


Modified: box/trunk/test/backupstorepatch/testbackupstorepatch.cpp
===================================================================
--- box/trunk/test/backupstorepatch/testbackupstorepatch.cpp	2006-10-27 19:01:10 UTC (rev 1107)
+++ box/trunk/test/backupstorepatch/testbackupstorepatch.cpp	2006-10-27 19:01:56 UTC (rev 1108)
@@ -579,9 +579,18 @@
 				writedir.Commit(true);
 			}
 
-			// Send the server a restart signal, so it does housekeeping immedaitely, and wait for it to happen
-			::sleep(1);	// wait for old connections to terminate
+#ifdef WIN32
+			// Cannot signal bbstored to do housekeeping now,
+			// so just wait until we're sure it's done
+			wait_for_operation(12);
+#else
+			// Send the server a restart signal, so it does 
+			// housekeeping immediately, and wait for it to happen
+			// Wait for old connections to terminate
+			::sleep(1);	
 			::kill(pid, SIGHUP);
+#endif
+
 			// Get the revision number of the info file
 			int64_t first_revision = 0;
 			RaidFileRead::FileExists(0, "backup/01234567/o01", &first_revision);




More information about the Boxbackup-commit mailing list