]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix for bug 83474 - The tables were not being unlocked properly when rebuilding the...
authorjake%acutex.net <>
Fri, 5 Oct 2001 22:18:12 +0000 (22:18 +0000)
committerjake%acutex.net <>
Fri, 5 Oct 2001 22:18:12 +0000 (22:18 +0000)
Patch by Lukasz Engel <Lukasz.Engel@softax.pl>
r= matty@chariot.net.au

sanitycheck.cgi

index 494e510eebbea0b0d70b4ffb126dedbbef216b39..1bf10f071d277c4d61f6a1a5fa3c011cc7e4e168 100755 (executable)
@@ -422,13 +422,15 @@ if (@badbugs) {
                     SqlQuote($k) .
                     " WHERE bug_id = $b");
         }
-        SendSQL("UNLOCK TABLES");
         Status("Keyword cache fixed.");
     } else {
         print qq{<a href="sanitycheck.cgi?rebuildkeywordcache=1">Click here to rebuild the keyword cache</a><p>\n};
     }
 }
 
+if (exists $::FORM{'rebuildkeywordcache'}) {
+    SendSQL("UNLOCK TABLES");
+}
 
 ###########################################################################
 # Perform duplicates table checks