summaryrefslogtreecommitdiffstats
path: root/sanitycheck.cgi
diff options
context:
space:
mode:
authorjake%acutex.net <>2001-10-06 00:18:12 +0200
committerjake%acutex.net <>2001-10-06 00:18:12 +0200
commit09c5e6b565eb670d61dae0e29de4a1f9d789cacf (patch)
treeab904904b464b2830251a60f7e78c95647c23d05 /sanitycheck.cgi
parentd24a52b9245badb17016ed1b3daeeb9eb266f421 (diff)
downloadbugzilla-09c5e6b565eb670d61dae0e29de4a1f9d789cacf.tar.gz
bugzilla-09c5e6b565eb670d61dae0e29de4a1f9d789cacf.tar.xz
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 <Lukasz.Engel@softax.pl> r= matty@chariot.net.au
Diffstat (limited to 'sanitycheck.cgi')
-rwxr-xr-xsanitycheck.cgi4
1 files changed, 3 insertions, 1 deletions
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{<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