Merge "Fix usage of $db->nextSequenceValue()"

This commit is contained in:
jenkins-bot 2017-05-11 21:19:13 +00:00 committed by Gerrit Code Review
commit 45952a5894

View file

@ -1118,10 +1118,7 @@ class AbuseFilter {
$data['afl_var_dump'] = $var_dump;
$data['afl_id'] = $dbw->nextSequenceValue( 'abuse_filter_log_afl_id_seq' );
$dbw->insert( 'abuse_filter_log', $data, __METHOD__ );
$local_log_ids[] = $dbw->insertId();
if ( $data['afl_id'] === null ) {
$data['afl_id'] = $dbw->insertId();
}
$local_log_ids[] = $data['afl_id'] = $dbw->insertId();
// Give grep a chance to find the usages:
// logentry-abusefilter-hit
$entry = new ManualLogEntry( 'abusefilter', 'hit' );