fix macro block mistake free issue.

This commit is contained in:
obdev
2021-07-12 15:18:46 +08:00
committed by wangzelin.wzl
parent 94ba0a393b
commit 9aebb91bf5

View File

@ -60,7 +60,7 @@ int ObDataMacroIdIterator::init(ObPartitionService& partition_service, ObIPartit
if (OB_ISNULL(single_pg_iter = partition_service.alloc_single_pg_partition_iter())) { if (OB_ISNULL(single_pg_iter = partition_service.alloc_single_pg_partition_iter())) {
ret = OB_ALLOCATE_MEMORY_FAILED; ret = OB_ALLOCATE_MEMORY_FAILED;
STORAGE_LOG(WARN, "fail to alloc single partition iterator", K(ret)); STORAGE_LOG(WARN, "fail to alloc single partition iterator", K(ret));
} else if (OB_FAIL(single_pg_iter->init(pg))) { } else if (OB_FAIL(single_pg_iter->init(pg, true/*need_trans_table*/))) {
STORAGE_LOG(WARN, "fail to init single pg iterator", K(ret)); STORAGE_LOG(WARN, "fail to init single pg iterator", K(ret));
} else { } else {
partition_iter_ = single_pg_iter; partition_iter_ = single_pg_iter;