fix print too much log

This commit is contained in:
dimstars
2022-12-13 08:08:39 +00:00
committed by ob-robot
parent 9f87d6fb3b
commit a468628f8e
5 changed files with 11 additions and 10 deletions

View File

@ -274,7 +274,9 @@ ObMvccWriteGuard::~ObMvccWriteGuard()
ctx_->write_done();
if (OB_NOT_NULL(memtable_) && memtable_->is_frozen_memtable()) {
if (OB_FAIL(tx_ctx->submit_redo_log(true/*is_freeze*/))) {
TRANS_LOG(WARN, "failed to submit freeze log", K(ret), KPC(tx_ctx));
if (REACH_TIME_INTERVAL(100 * 1000)) {
TRANS_LOG(WARN, "failed to submit freeze log", K(ret), KPC(tx_ctx));
}
memtable_->get_freezer()->set_need_resubmit_log(true);
}
}