close all tablet context when skip to build del lob task

This commit is contained in:
obdev
2024-07-25 07:11:43 +00:00
committed by ob-robot
parent d120667c1e
commit 26ce6ec537
2 changed files with 28 additions and 36 deletions

View File

@ -538,13 +538,6 @@ int ObTableLoadMerger::build_del_lob_ctx(bool &need_del_lob)
table_array = &empty_table_array;
}
if (OB_SUCC(ret)) {
if (table_array->empty()) {
FLOG_INFO("LOAD NO NEED DEL LOB");
need_del_lob = false;
if (OB_FAIL(store_ctx_->set_status_merged())) {
LOG_WARN("fail to set status", K(ret));
}
} else {
ObArray<ObDirectLoadMultipleSSTable *> multiple_sstable_array;
ObDirectLoadMultipleMergeRangeSplitter range_splitter;
multiple_sstable_array.set_tenant_id(MTL_ID());
@ -577,7 +570,6 @@ int ObTableLoadMerger::build_del_lob_ctx(bool &need_del_lob)
}
}
}
}
return ret;
}

View File

@ -683,10 +683,10 @@ int ObDirectLoadMultipleMergeRangeSplitter::init(
if (IS_INIT) {
ret = OB_INIT_TWICE;
LOG_WARN("ObDirectLoadMultipleMergeRangeSplitter init twice", KR(ret), KP(this));
} else if (OB_UNLIKELY(sstable_array.empty() || !table_data_desc.is_valid() ||
} else if (OB_UNLIKELY(!table_data_desc.is_valid() ||
nullptr == datum_utils)) {
ret = OB_INVALID_ARGUMENT;
LOG_WARN("invalid args", KR(ret), K(sstable_array), K(table_data_desc), KP(datum_utils));
LOG_WARN("invalid args", KR(ret), K(table_data_desc), KP(datum_utils));
} else {
if (OB_FAIL(construct_rowkey_iters(sstable_array, table_data_desc, datum_utils))) {
LOG_WARN("fail to construct sstable rowkey itres", KR(ret));