Commit 9d772bd4 authored by dmose%mozilla.org's avatar dmose%mozilla.org

when invoked with -syncall, have the GET_LOCK time out after 45 minutes rather…

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
parent 2d15e559
...@@ -86,8 +86,12 @@ $::param{'queryagainstshadowdb'} = 1; # Force us to be able to use the ...@@ -86,8 +86,12 @@ $::param{'queryagainstshadowdb'} = 1; # Force us to be able to use the
ConnectToDatabase(1); ConnectToDatabase(1);
Verbose("Aquiring lock."); Verbose("Acquiring lock");
SendSQL("SELECT GET_LOCK('synclock', 1)"); if ( $syncall == 1) {
SendSQL("SELECT GET_LOCK('synclock', 2700)");
} else {
SendSQL("SELECT GET_LOCK('synclock', 1)");
}
if (!FetchOneColumn()) { if (!FetchOneColumn()) {
Verbose("Couldn't get the lock to do the shadow database syncing."); Verbose("Couldn't get the lock to do the shadow database syncing.");
exit; exit;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment