From: dmose%mozilla.org <> Date: Tue, 24 Oct 2000 08:51:56 +0000 (+0000) Subject: when invoked with -syncall, have the GET_LOCK time out after 45 minutes rather than... X-Git-Tag: bugzilla-2.12~145 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d772bd4cfb9c9e22513c5370dedaf8a2e7ad71f;p=thirdparty%2Fbugzilla.git when invoked with -syncall, have the GET_LOCK time out after 45 minutes rather than 1 second, since we want syncall to happen anyway, even if other individual syncs are currently in progress. r=endico@mozilla.org --- diff --git a/syncshadowdb b/syncshadowdb index a78c18729a..94e4920441 100755 --- a/syncshadowdb +++ b/syncshadowdb @@ -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;