bugfixed: do NOT check order_by in sf_binlog_writer_change_next_version

connection_manager
YuQing 2021-02-08 17:30:21 +08:00
parent 6a5079e0a9
commit 1b4e0ad870
1 changed files with 0 additions and 8 deletions

View File

@ -718,14 +718,6 @@ int sf_binlog_writer_change_next_version(SFBinlogWriterInfo *writer,
{ {
SFBinlogWriterBuffer *buffer; SFBinlogWriterBuffer *buffer;
if (writer->thread->order_by != SF_BINLOG_THREAD_TYPE_ORDER_BY_VERSION) {
logError("file: "__FILE__", line: %d, "
"unexpected order by type: %d, can't set "
"next version to %"PRId64"!", __LINE__,
writer->thread->order_by, next_version);
return EINVAL;
}
if ((buffer=sf_binlog_writer_alloc_versioned_buffer_ex(writer, next_version, if ((buffer=sf_binlog_writer_alloc_versioned_buffer_ex(writer, next_version,
next_version, SF_BINLOG_BUFFER_TYPE_SET_NEXT_VERSION)) == NULL) next_version, SF_BINLOG_BUFFER_TYPE_SET_NEXT_VERSION)) == NULL)
{ {