[CP] [CP] [OBKV] Fix ttl delete with lob attribute report -4016 error

This commit is contained in:
obdev 2024-02-09 08:54:58 +00:00 committed by ob-robot
parent 4c24ed8d60
commit 64af7349c3

View File

@ -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));