Fix estimate row count of data inserted by current trx
This commit is contained in:
@ -587,6 +587,7 @@ int ObAccessPathEstimation::add_index_info(ObOptimizerContext &ctx,
|
||||
index_est_arg->tablet_id_ = part.tablet_id_;
|
||||
index_est_arg->ls_id_ = part.ls_id_;
|
||||
index_est_arg->tenant_id_ = ctx.get_session_info()->get_effective_tenant_id();
|
||||
index_est_arg->tx_id_ = ctx.get_session_info()->get_tx_id();
|
||||
}
|
||||
// FIXME, move following codes
|
||||
if (OB_SUCC(ret)) {
|
||||
@ -1101,6 +1102,7 @@ int ObAccessPathEstimation::storage_estimate_full_table_rowcount(ObOptimizerCont
|
||||
path_arg.tablet_id_ = best_index_part.tablet_id_;
|
||||
path_arg.ls_id_ = best_index_part.ls_id_;
|
||||
path_arg.tenant_id_ = ctx.get_session_info()->get_effective_tenant_id();
|
||||
path_arg.tx_id_ = ctx.get_session_info()->get_tx_id();
|
||||
if (OB_FAIL(ObSQLUtils::make_whole_range(arena,
|
||||
meta.ref_table_id_,
|
||||
meta.table_rowkey_count_,
|
||||
|
||||
@ -36,6 +36,7 @@ int ObStorageEstimator::estimate_row_count(const obrpc::ObEstPartArg &arg,
|
||||
param.scan_flag_ = arg.index_params_.at(i).scan_flag_;
|
||||
param.tablet_id_ = arg.index_params_.at(i).tablet_id_;
|
||||
param.ls_id_ = arg.index_params_.at(i).ls_id_;
|
||||
param.tx_id_ = arg.index_params_.at(i).tx_id_;
|
||||
if (OB_FAIL(storage_estimate_rowcount(
|
||||
arg.index_params_.at(i).tenant_id_,
|
||||
param,
|
||||
|
||||
Reference in New Issue
Block a user