fix core when print replay_tablet_task and remove tenant
This commit is contained in:
@ -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_));
|
||||
|
||||
Reference in New Issue
Block a user