Fix mb handle not rollback

This commit is contained in:
obdev
2023-04-27 02:10:57 +00:00
committed by ob-robot
parent 2293904cc0
commit f59bb29409
2 changed files with 13 additions and 9 deletions

View File

@ -1140,6 +1140,10 @@ int ObTmpTenantMemBlockManager::wash_block(ObTmpMacroBlock *wash_block, bool &is
STORAGE_LOG(INFO, "succeed to wash a block", K(*wash_block));
}
}
if (OB_FAIL(ret)) {
mb_handle.reset();
}
}
} else {
STORAGE_LOG(INFO, "this block has some the unclosed extent", K(*wash_block));