From 1b4e0ad8704288cb6fdb90db56bce60f1bad881c Mon Sep 17 00:00:00 2001 From: YuQing <384681@qq.com> Date: Mon, 8 Feb 2021 17:30:21 +0800 Subject: [PATCH] bugfixed: do NOT check order_by in sf_binlog_writer_change_next_version --- src/sf_binlog_writer.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/sf_binlog_writer.c b/src/sf_binlog_writer.c index 1cfb777..5ab4aaf 100644 --- a/src/sf_binlog_writer.c +++ b/src/sf_binlog_writer.c @@ -718,14 +718,6 @@ int sf_binlog_writer_change_next_version(SFBinlogWriterInfo *writer, { 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, next_version, SF_BINLOG_BUFFER_TYPE_SET_NEXT_VERSION)) == NULL) {