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 git-svn-id: svn://10.0.0.236/trunk@104663 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user