From 8412c48c7b4edc5eb2e21619e67b7bcdd5f8d01b Mon Sep 17 00:00:00 2001 From: "jake%acutex.net" Date: Fri, 5 Oct 2001 15:18:12 +0000 Subject: [PATCH] Fix for bug 83474 - The tables were not being unlocked properly when rebuilding the keyword cache if there were no keywords to rebuild. Patch by Lukasz Engel r= matty@chariot.net.au git-svn-id: svn://10.0.0.236/trunk@104663 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/sanitycheck.cgi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mozilla/webtools/bugzilla/sanitycheck.cgi b/mozilla/webtools/bugzilla/sanitycheck.cgi index 494e510eebb..1bf10f071d2 100755 --- a/mozilla/webtools/bugzilla/sanitycheck.cgi +++ b/mozilla/webtools/bugzilla/sanitycheck.cgi @@ -422,13 +422,15 @@ if (@badbugs) { SqlQuote($k) . " WHERE bug_id = $b"); } - SendSQL("UNLOCK TABLES"); Status("Keyword cache fixed."); } else { print qq{Click here to rebuild the keyword cache

\n}; } } +if (exists $::FORM{'rebuildkeywordcache'}) { + SendSQL("UNLOCK TABLES"); +} ########################################################################### # Perform duplicates table checks