From 09c5e6b565eb670d61dae0e29de4a1f9d789cacf Mon Sep 17 00:00:00 2001 From: "jake%acutex.net" <> Date: Fri, 5 Oct 2001 22:18:12 +0000 Subject: 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 --- sanitycheck.cgi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sanitycheck.cgi') diff --git a/sanitycheck.cgi b/sanitycheck.cgi index 494e510ee..1bf10f071 100755 --- a/sanitycheck.cgi +++ b/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 -- cgit v1.2.3-24-g4f1b