add tag for debug
parent
e459a0c255
commit
0014cfa154
|
|
@ -366,9 +366,10 @@ static int deal_record_by_version(SFBinlogWriterBuffer *wb)
|
|||
} else if (distance < 0) {
|
||||
logError("file: "__FILE__", line: %d, subdir_name: %s, "
|
||||
"current version: %"PRId64" is too small which "
|
||||
"less than %"PRId64, __LINE__,
|
||||
"less than %"PRId64", tag: %d, buffer(%d): %.*s", __LINE__,
|
||||
writer->cfg.subdir_name, wb->version.first,
|
||||
writer->version_ctx.next);
|
||||
writer->version_ctx.next, wb->tag, wb->bf.length,
|
||||
wb->bf.length, wb->bf.buff);
|
||||
fast_mblock_free_object(&writer->thread->mblock, wb);
|
||||
return EINVAL;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -46,6 +46,7 @@ struct sf_binlog_writer_info;
|
|||
typedef struct sf_binlog_writer_buffer {
|
||||
SFVersionRange version;
|
||||
BufferInfo bf;
|
||||
int tag;
|
||||
int type; //for versioned writer
|
||||
struct sf_binlog_writer_info *writer;
|
||||
struct sf_binlog_writer_buffer *next;
|
||||
|
|
|
|||
Loading…
Reference in New Issue