fix core when print replay_tablet_task and remove tenant

This commit is contained in:
windye
2023-08-25 02:44:10 +00:00
committed by ob-robot
parent 285799da2f
commit 0ca997cb54
5 changed files with 17 additions and 15 deletions

View File

@ -1576,20 +1576,10 @@ int ObMultiTenant::remove_tenant(const uint64_t tenant_id, bool &remove_tenant_s
}
}
if (OB_SUCC(ret)) {
if (OB_FAIL(OB_TMP_FILE_STORE.free_tenant_file_store(tenant_id))) {
if (OB_ENTRY_NOT_EXIST == ret) {
ret = OB_SUCCESS;
} else {
STORAGE_LOG(WARN, "fail to free tmp tenant file store", K(ret), K(tenant_id));
}
}
}
if (OB_SUCC(ret) && OB_NOT_NULL(removed_tenant)) {
ObLDHandle handle;
if (OB_FAIL(removed_tenant->try_wait())) {
LOG_WARN("remove tenant try_wait failed", K(ret));
LOG_WARN("remove tenant try_wait failed", K(ret), K(tenant_id));
} else if (OB_FAIL(removed_tenant->try_wrlock(handle))) {
LOG_WARN("can't get tenant wlock to remove tenant", K(ret), K(tenant_id),
KP(removed_tenant), K(removed_tenant->lock_));