bugfix: tmp file not removed from tmp file manager when tenant destroy.
This commit is contained in:
@ -1054,10 +1054,10 @@ void ObTenant::destroy()
|
|||||||
ObTenantSwitchGuard guard(this);
|
ObTenantSwitchGuard guard(this);
|
||||||
destroy_mtl_module();
|
destroy_mtl_module();
|
||||||
// 1.some mtl module(eg: ObDataAccessService) remove tmp file when destroy,
|
// 1.some mtl module(eg: ObDataAccessService) remove tmp file when destroy,
|
||||||
// so free_tenant_file_store must be after destroy_mtl_module.
|
// so remove_tenant_file must be after destroy_mtl_module.
|
||||||
// 2.there is tg in ObTmpTenantMemBlockManager, so free_tenant_file_store must be before
|
// 2.there is tg in ObTmpTenantMemBlockManager, so remove_tenant_file must be before
|
||||||
// ObTenantBase::destroy() in which tg leak is checked.
|
// ObTenantBase::destroy() in which tg leak is checked.
|
||||||
if (OB_TMP_FAIL(OB_TMP_FILE_STORE.free_tenant_file_store(id_))) {
|
if (OB_TMP_FAIL(FILE_MANAGER_INSTANCE_V2.remove_tenant_file(id_))) {
|
||||||
if (OB_ENTRY_NOT_EXIST == tmp_ret) {
|
if (OB_ENTRY_NOT_EXIST == tmp_ret) {
|
||||||
tmp_ret = OB_SUCCESS;
|
tmp_ret = OB_SUCCESS;
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user