[FEAT MERGE] optimizer statistics gather enhance
Co-authored-by: Larry955 <1412857955@qq.com> Co-authored-by: wangt1xiuyi <13547954130@163.com>
This commit is contained in:
@ -101,30 +101,6 @@ int ObTablePartitionInfo::calculate_phy_table_location_info(
|
||||
return ret;
|
||||
}
|
||||
|
||||
int ObTablePartitionInfo::calculate_phy_table_location_info(
|
||||
ObExecContext &exec_ctx,
|
||||
const ParamStore ¶ms,
|
||||
const common::ObDataTypeCastParams &dtc_params,
|
||||
const common::ObIArray<ObTabletID> &tablet_ids,
|
||||
const common::ObIArray<ObObjectID> &partition_ids)
|
||||
{
|
||||
int ret = OB_SUCCESS;
|
||||
ObCandiTableLoc candi_table_loc;
|
||||
if (OB_FAIL(table_location_.get_tablet_locations(
|
||||
exec_ctx.get_das_ctx(),
|
||||
exec_ctx.get_my_session(),
|
||||
table_location_.get_ref_table_id(),
|
||||
tablet_ids,
|
||||
partition_ids,
|
||||
candi_table_loc_.get_phy_part_loc_info_list_for_update()))) {
|
||||
LOG_WARN("failed to set partition locations", K(ret));
|
||||
} else {
|
||||
candi_table_loc_.set_table_location_key(
|
||||
table_location_.get_table_id(), table_location_.get_ref_table_id());
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
// 全部选择主,并且将direction设上
|
||||
int ObTablePartitionInfo::calc_phy_table_loc_and_select_leader(ObExecContext &exec_ctx,
|
||||
const ParamStore ¶ms,
|
||||
|
||||
Reference in New Issue
Block a user