call flush_writer_files before rotate file
parent
755296bb68
commit
fc9c23fb95
|
|
@ -197,6 +197,7 @@ static int deal_binlog_records(SFBinlogWriterThread *thread,
|
||||||
thread->mblock, current);
|
thread->mblock, current);
|
||||||
break;
|
break;
|
||||||
case SF_BINLOG_BUFFER_TYPE_ROTATE_FILE:
|
case SF_BINLOG_BUFFER_TYPE_ROTATE_FILE:
|
||||||
|
flush_writer_files(thread);
|
||||||
skip_empty_file = current->version.first;
|
skip_empty_file = current->version.first;
|
||||||
if (!(skip_empty_file && current->writer->fw.file.size == 0)) {
|
if (!(skip_empty_file && current->writer->fw.file.size == 0)) {
|
||||||
if ((result=sf_file_writer_set_binlog_write_index(¤t->
|
if ((result=sf_file_writer_set_binlog_write_index(¤t->
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue