reduce print log

This commit is contained in:
Tyshawn
2022-11-30 14:05:45 +00:00
committed by ob-robot
parent fa726077f7
commit 6246d0b7d4
2 changed files with 2 additions and 2 deletions

View File

@ -514,7 +514,7 @@ int ObTmpMacroBlock::get_block_cache_handle(ObTmpBlockValueHandle &handle)
if (OB_UNLIKELY(OB_ENTRY_NOT_EXIST != ret)) {
STORAGE_LOG(WARN, "fail to get tmp block from cache", K(ret), K(key));
} else if (REACH_COUNT_INTERVAL(100)) { // print one log per 100 times.
STORAGE_LOG(INFO, "block cache miss", K(ret), K(key));
STORAGE_LOG(DEBUG, "block cache miss", K(ret), K(key));
}
}
return ret;

View File

@ -48,7 +48,7 @@ int ObIMemtableMgr::get_first_memtable(ObTableHandleV2 &handle) const
SpinRLockGuard lock_guard(lock_);
if (memtable_head_ == memtable_tail_) {
ret = OB_ENTRY_NOT_EXIST;
STORAGE_LOG(WARN, "There is no memtable in ObLockMemtableMgr.");
STORAGE_LOG(DEBUG, "There is no memtable in ObIMemtableMgr.");
} else if (OB_FAIL(get_ith_memtable(memtable_head_, handle))) {
STORAGE_LOG(WARN, "fail to get ith memtable", K(ret), K(memtable_head_));
} else if (OB_UNLIKELY(!handle.is_valid())) {