recycle tenant_allocator when tenant creation fails
This commit is contained in:
@ -964,6 +964,9 @@ int ObMultiTenant::create_tenant(const ObTenantMeta &meta, bool write_slog, cons
|
|||||||
bucket_lock_.unlock(bucket_lock_idx);
|
bucket_lock_.unlock(bucket_lock_idx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (OB_FAIL(ret)) {
|
||||||
|
malloc_allocator->recycle_tenant_allocator(tenant_id);
|
||||||
|
}
|
||||||
FLOG_INFO("finish create new tenant", K(ret), K(tenant_id), K(write_slog), K(create_step), K(bucket_lock_idx));
|
FLOG_INFO("finish create new tenant", K(ret), K(tenant_id), K(write_slog), K(create_step), K(bucket_lock_idx));
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
@ -2234,4 +2237,4 @@ int ObSrvNetworkFrame::reload_sql_thread_config()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user