diff options
author | dmose%mozilla.org <> | 2000-10-24 10:51:56 +0200 |
---|---|---|
committer | dmose%mozilla.org <> | 2000-10-24 10:51:56 +0200 |
commit | 9d772bd4cfb9c9e22513c5370dedaf8a2e7ad71f (patch) | |
tree | 8c1ffa37ba3c86d4ec8ab7d6957838c14185ff00 /syncshadowdb | |
parent | 2d15e559a22d7af9458e9005436fa0433202f6e3 (diff) | |
download | bugzilla-9d772bd4cfb9c9e22513c5370dedaf8a2e7ad71f.tar.gz bugzilla-9d772bd4cfb9c9e22513c5370dedaf8a2e7ad71f.tar.xz |
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; |