bugfixed: add_to_flush_writer_queue MUST before deal function
parent
1ece8a3389
commit
76f757f2bd
|
|
@ -451,9 +451,10 @@ static int deal_binlog_records(SFBinlogWriterThread *thread,
|
||||||
thread->mblock, current);
|
thread->mblock, current);
|
||||||
} else {
|
} else {
|
||||||
current->writer->total_count++;
|
current->writer->total_count++;
|
||||||
if ((result=deal_record_by_version(current)) == 0) {
|
add_to_flush_writer_queue(thread, current->writer);
|
||||||
add_to_flush_writer_queue(thread, current->writer);
|
|
||||||
} else {
|
/* NOTE: current maybe be released in the deal function */
|
||||||
|
if ((result=deal_record_by_version(current)) != 0) {
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue