Fix ObCreateTabletInfo wrongly assigned

This commit is contained in:
JiahuaChen
2022-11-09 15:05:57 +00:00
committed by wangzelin.wzl
parent c7666a7ad6
commit bb37fd7a3c
2 changed files with 5 additions and 3 deletions

View File

@ -2699,6 +2699,8 @@ public:
common::ObSArray<int64_t> table_schema_index_;
lib::Worker::CompatMode compat_mode_;
bool is_create_bind_hidden_tablets_;
private:
DISALLOW_COPY_AND_ASSIGN(ObCreateTabletInfo);
};
struct ObBatchCreateTabletArg

View File

@ -1732,7 +1732,7 @@ int ObTabletCreateDeleteHelper::build_tablet_create_info(
// find hidden lob info
int64_t aux_idx = -1;
if (find_related_aux_info(arg, tablet_create_info.data_tablet_id_, aux_idx)) {
const ObCreateTabletInfo aux_info = arg.tablets_.at(aux_idx);
const ObCreateTabletInfo &aux_info = arg.tablets_.at(aux_idx);
if (OB_FAIL(fill_aux_infos(arg, aux_info, tablet_create_info))) {
LOG_WARN("failed to fill aux info", K(ret), K(PRINT_CREATE_ARG(arg)), K(aux_idx));
} else if (OB_FAIL(skip_idx.push_back(aux_idx))) {