Bugfix: the tmp_file module maintains its washing_count_ variable incorrectly.

This commit is contained in:
obdev
2024-04-30 05:36:00 +00:00
committed by ob-robot
parent 35dedbd8b5
commit 2de840e40d

View File

@ -1527,6 +1527,7 @@ int ObTmpTenantMemBlockManager::exec_wait()
const int64_t free_page_nums = blk.get_free_page_nums();
if (OB_FAIL(wait_info->exec_wait())) {
STORAGE_LOG(WARN, "fail to exec io handle wait", K(ret), K_(tenant_id), KPC(wait_info));
ATOMIC_DEC(&washing_count_);
int tmp_ret = OB_SUCCESS;
if (OB_TMP_FAIL(blk.check_and_set_status(ObTmpMacroBlock::WASHING, ObTmpMacroBlock::MEMORY))) {
STORAGE_LOG(ERROR, "fail to rollback block status", K(ret), K(tmp_ret), K(block_id), K(blk));