Commit 09c5e6b5 authored by jake%acutex.net's avatar jake%acutex.net

Fix for bug 83474 - The tables were not being unlocked properly when rebuilding…

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
parent d24a52b9
...@@ -422,13 +422,15 @@ if (@badbugs) { ...@@ -422,13 +422,15 @@ if (@badbugs) {
SqlQuote($k) . SqlQuote($k) .
" WHERE bug_id = $b"); " WHERE bug_id = $b");
} }
SendSQL("UNLOCK TABLES");
Status("Keyword cache fixed."); Status("Keyword cache fixed.");
} else { } else {
print qq{<a href="sanitycheck.cgi?rebuildkeywordcache=1">Click here to rebuild the keyword cache</a><p>\n}; 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 # Perform duplicates table checks
......
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