[BUG.FIX] fix ObTablesHandleArray::assign()

This commit is contained in:
Tyshawn
2023-02-21 10:20:10 +00:00
committed by ob-robot
parent 0f911cfed6
commit 4c0a8986ec

View File

@ -620,8 +620,8 @@ int ObTablesHandleArray::assign(const ObTablesHandleArray &other)
if (OB_ISNULL(table)) { if (OB_ISNULL(table)) {
ret = OB_ERR_SYS; ret = OB_ERR_SYS;
STORAGE_LOG(WARN, "table must not null", K(ret), K(other)); STORAGE_LOG(WARN, "table must not null", K(ret), K(other));
} else if (OB_NOT_NULL(allocator_)) { } else if (OB_NOT_NULL(other.allocator_)) {
if (OB_FAIL(add_table(table, allocator_))) { if (OB_FAIL(add_table(table, other.allocator_))) {
STORAGE_LOG(WARN, "fail to add table", K(ret)); STORAGE_LOG(WARN, "fail to add table", K(ret));
} }
} else if (OB_FAIL(add_table(table))) { } else if (OB_FAIL(add_table(table))) {