mirror of https://github.com/milvus-io/milvus.git
Merge pull request #1974 from zhangch5n/master
not to printf the log when record type is Nonepull/1981/head^2
commit
06335ad80b
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue