DBImpl.cpp::ExecWalRecord need to process error status in case wal::MXLogType::Entity (#2083)

Signed-off-by: lwglgy <1486111482@qq.com>
This commit is contained in:
lwglgy 2020-04-25 13:24:24 +08:00 committed by GitHub
parent 67d8a9b54c
commit 7e52815fb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2284,6 +2284,7 @@ DBImpl::ExecWalRecord(const wal::MXLogRecord& record) {
std::string target_collection_name;
status = GetPartitionByTag(record.collection_id, record.partition_tag, target_collection_name);
if (!status.ok()) {
LOG_WAL_ERROR_ << LogOut("[%s][%ld] ", "insert", 0) << "Get partition fail: " << status.message();
return status;
}