From 4c0a8986ec1de95ef0dc106f82c5e4eb66eeae84 Mon Sep 17 00:00:00 2001 From: Tyshawn Date: Tue, 21 Feb 2023 10:20:10 +0000 Subject: [PATCH] [BUG.FIX] fix ObTablesHandleArray::assign() --- src/storage/ob_i_table.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/storage/ob_i_table.cpp b/src/storage/ob_i_table.cpp index 32584e2de1..0d0b7c6a23 100644 --- a/src/storage/ob_i_table.cpp +++ b/src/storage/ob_i_table.cpp @@ -620,8 +620,8 @@ int ObTablesHandleArray::assign(const ObTablesHandleArray &other) if (OB_ISNULL(table)) { ret = OB_ERR_SYS; STORAGE_LOG(WARN, "table must not null", K(ret), K(other)); - } else if (OB_NOT_NULL(allocator_)) { - if (OB_FAIL(add_table(table, allocator_))) { + } else if (OB_NOT_NULL(other.allocator_)) { + if (OB_FAIL(add_table(table, other.allocator_))) { STORAGE_LOG(WARN, "fail to add table", K(ret)); } } else if (OB_FAIL(add_table(table))) {