Commit b1779f28 authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 745080: Voting extension causes database deadlocks

r=glob a=LpSolit
parent 3988beb8
......@@ -467,7 +467,10 @@ sub _page_user {
}
}
$dbh->do('DELETE FROM votes WHERE vote_count <= 0');
if ($canedit && $bug) {
$dbh->do('DELETE FROM votes WHERE vote_count = 0 AND who = ?',
undef, $who->id);
}
$dbh->bz_commit_transaction();
$vars->{'canedit'} = $canedit;
......
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