bugfix lob direct load pass lob_inrow_threshold config

This commit is contained in:
obdev
2024-02-22 12:15:22 +00:00
committed by ob-robot
parent ac9f00047d
commit fe2ff7a4b3
2 changed files with 2 additions and 1 deletions

View File

@ -1279,6 +1279,7 @@ int ObTabletDirectLoadMgr::prepare_schema_item_on_demand(const uint64_t table_id
schema_item_.is_index_table_ = table_schema->is_index_table();
schema_item_.rowkey_column_num_ = table_schema->get_rowkey_column_num();
schema_item_.is_unique_index_ = table_schema->is_unique_index();
schema_item_.lob_inrow_threshold_ = table_schema->get_lob_inrow_threshold();
if (OB_FAIL(column_items_.reserve(data_desc.get_col_desc_array().count()))) {
LOG_WARN("reserve column schema array failed", K(ret), K(data_desc.get_col_desc_array().count()), K(column_items_));

View File

@ -239,7 +239,7 @@ int ObInsertLobColumnHelper::insert_lob_column(ObIAllocator &allocator,
int64_t byte_len = 0;
if (OB_FAIL(src.get_lob_data_byte_len(byte_len))) {
LOG_WARN("fail to get lob data byte len", K(ret), K(src));
} else if (src.has_inrow_data() && byte_len <= ObLobManager::LOB_IN_ROW_MAX_LENGTH) {
} else if (src.has_inrow_data() && lob_mngr->can_write_inrow(data.length(), lob_storage_param.inrow_threshold_)) {
// do fast inrow
if (OB_FAIL(src.get_inrow_data(data))) {
LOG_WARN("fail to get inrow data", K(ret), K(src));