提交 b02a37d7 编写于 作者: Z zhangchen

not to printf the log when record type is None

Signed-off-by: Nzhangchen <zhangch5n@163.com>
上级 375fd709
......@@ -29,7 +29,7 @@ using TableMetaPtr = std::shared_ptr<std::unordered_map<std::string, TableSchema
#define UNIT_MB (1024 * 1024)
#define LSN_OFFSET_MASK 0x00000000ffffffff
enum class MXLogType { InsertBinary, InsertVector, Delete, Update, Flush, None, Entity };
enum class MXLogType { None, InsertBinary, InsertVector, Delete, Update, Flush, Entity };
struct MXLogRecord {
uint64_t lsn;
......
......@@ -148,8 +148,11 @@ WalManager::GetNextRecovery(MXLogRecord& record) {
}
}
LOG_WAL_INFO_ << "record type " << (int32_t)record.type << " record lsn " << record.lsn << " error code "
<< error_code;
// print the log only when record.type != MXLogType::None
if (record.type != MXLogType::None) {
LOG_WAL_INFO_ << "record type " << (int32_t)record.type << " record lsn " << record.lsn << " error code "
<< error_code;
}
return error_code;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册