diff options
author | dmose%mozilla.org <> | 2000-10-24 08:51:56 +0000 |
---|---|---|
committer | dmose%mozilla.org <> | 2000-10-24 08:51:56 +0000 |
commit | 9d772bd4cfb9c9e22513c5370dedaf8a2e7ad71f (patch) | |
tree | 8c1ffa37ba3c86d4ec8ab7d6957838c14185ff00 /syncshadowdb | |
parent | remove problem with newer perl spewing error messages into the CGI (diff) | |
download | bugzilla-9d772bd4cfb9c9e22513c5370dedaf8a2e7ad71f.tar.gz bugzilla-9d772bd4cfb9c9e22513c5370dedaf8a2e7ad71f.tar.bz2 bugzilla-9d772bd4cfb9c9e22513c5370dedaf8a2e7ad71f.zip |
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
Diffstat (limited to 'syncshadowdb')
-rwxr-xr-x | syncshadowdb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/syncshadowdb b/syncshadowdb index a78c18729..94e492044 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; |