[CP] [OBKV] Fix core when print lob object

This commit is contained in:
obdev
2024-02-09 13:17:58 +00:00
committed by ob-robot
parent 98c3c2a131
commit 8ee4332655

View File

@ -587,7 +587,8 @@ int ObTableCtx::adjust_column_type(const ObTableColumnInfo &column_info, ObObj &
if (OB_SUCC(ret)) { if (OB_SUCC(ret)) {
// add lob header when is lob storage // add lob header when is lob storage
if (is_lob_storage(obj.get_type()) && cur_cluster_version_ >= CLUSTER_VERSION_4_1_0_0) { if (is_lob_storage(obj.get_type()) && cur_cluster_version_ >= CLUSTER_VERSION_4_1_0_0) {
if (OB_FAIL(convert_lob(ctx_allocator_, obj))) { // use the processor's allocator to ensure the lifecycle of lob object
if (OB_FAIL(convert_lob(allocator_, obj))) {
LOG_WARN("fail to convert lob", K(ret), K(obj)); LOG_WARN("fail to convert lob", K(ret), K(obj));
} }
} }