fix table schema use THIS_WORKER.get_allocator() leads dynamic leak

This commit is contained in:
18523270951@163.com
2023-07-13 07:48:00 +00:00
committed by ob-robot
parent d661d9bb89
commit 7002e5975a
2 changed files with 2 additions and 2 deletions

View File

@ -4820,7 +4820,7 @@ int ObSQLUtils::async_recompile_view(const share::schema::ObTableSchema &old_vie
ObSQLSessionInfo &session_info)
{
int ret = OB_SUCCESS;
ObTableSchema new_view_schema;
ObTableSchema new_view_schema(&alloc);
uint64_t data_version = 0;
if (OB_FAIL(new_view_schema.assign(old_view_schema))) {
LOG_WARN("failed to assign table schema", K(ret));