From 64af7349c3a18a64e94988f4242eb71dee33bc42 Mon Sep 17 00:00:00 2001 From: obdev Date: Fri, 9 Feb 2024 08:54:58 +0000 Subject: [PATCH] [CP] [CP] [OBKV] Fix ttl delete with lob attribute report -4016 error --- src/observer/table/ob_table_context.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/observer/table/ob_table_context.cpp b/src/observer/table/ob_table_context.cpp index 440ada0a9..6df6c1115 100644 --- a/src/observer/table/ob_table_context.cpp +++ b/src/observer/table/ob_table_context.cpp @@ -479,8 +479,11 @@ int ObTableCtx::convert_lob(ObIAllocator &allocator, ObObj &obj) int ret = OB_SUCCESS; ObString full_data; - if (obj.has_lob_header()) { + if (obj.is_persist_lob()) { + // do nothing + } else if (obj.has_lob_header()) { ret = OB_ERR_UNEXPECTED; + LOG_USER_ERROR(OB_ERR_UNEXPECTED, "lob object should have lob header"); LOG_WARN("object should not have lob header", K(ret), K(obj)); } else if (OB_FAIL(ObTextStringResult::ob_convert_obj_temporay_lob(obj, allocator))) { // add lob header LOG_WARN("fail to add lob header to obj", K(ret), K(obj));