]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
when invoked with -syncall, have the GET_LOCK time out after 45 minutes rather than...
authordmose%mozilla.org <>
Tue, 24 Oct 2000 08:51:56 +0000 (08:51 +0000)
committerdmose%mozilla.org <>
Tue, 24 Oct 2000 08:51:56 +0000 (08:51 +0000)
syncshadowdb

index a78c18729a91a7fadf778188849c3caa3cac6cea..94e49204418499c7381f1e356cd35b30f4fcd63e 100755 (executable)
@@ -86,8 +86,12 @@ $::param{'queryagainstshadowdb'} = 1; # Force us to be able to use the
 
 ConnectToDatabase(1);
 
-Verbose("Aquiring lock.");
-SendSQL("SELECT GET_LOCK('synclock', 1)");
+Verbose("Acquiring lock");
+if ( $syncall == 1) {
+    SendSQL("SELECT GET_LOCK('synclock', 2700)");
+} else {
+    SendSQL("SELECT GET_LOCK('synclock', 1)");
+}
 if (!FetchOneColumn()) {
     Verbose("Couldn't get the lock to do the shadow database syncing.");
     exit;