[BUG.FIX] Bad block inspection skips temporary file macro blocks

This commit is contained in:
Tyshawn
2023-03-20 21:43:11 +08:00
committed by ob-robot
parent 3b4d188e00
commit 2f7011184e
5 changed files with 11 additions and 4 deletions

View File

@ -1211,6 +1211,9 @@ int ObTmpTenantMemBlockManager::write_io(
STORAGE_LOG(WARN, "Fail to async write block", K(ret), K(write_info), K(handle));
} else if (OB_FAIL(block_write_ctx_.add_macro_block_id(handle.get_macro_id()))) {
STORAGE_LOG(WARN, "fail to add macro id", K(ret), "macro id", handle.get_macro_id());
} else if (OB_FAIL(OB_SERVER_BLOCK_MGR.update_write_time(handle.get_macro_id(),
true/*update_to_max_time*/))) { //just to skip bad block inspect
STORAGE_LOG(WARN, "fail to update macro id write time", K(ret), "macro id", handle.get_macro_id());
}
}
return ret;