Add tx snapshot for 4377 check in index lookup.

This commit is contained in:
obdev
2023-07-17 04:18:16 +00:00
committed by ob-robot
parent ff40458be9
commit dc60d1a54c
2 changed files with 2 additions and 0 deletions

View File

@ -1130,6 +1130,7 @@ int ObLocalIndexLookupOp::check_lookup_row_cnt()
"lookup_group_cnt", get_lookup_group_cnt(), "lookup_group_cnt", get_lookup_group_cnt(),
"index_table_id", index_ctdef_->ref_table_id_ , "index_table_id", index_ctdef_->ref_table_id_ ,
"data_table_tablet_id", tablet_id_ , "data_table_tablet_id", tablet_id_ ,
KPC_(snapshot),
KPC_(tx_desc)); KPC_(tx_desc));
if (trans_info_array_.count() == scan_param_.key_ranges_.count()) { if (trans_info_array_.count() == scan_param_.key_ranges_.count()) {
for (int64_t i = 0; i < trans_info_array_.count(); i++) { for (int64_t i = 0; i < trans_info_array_.count(); i++) {

View File

@ -3354,6 +3354,7 @@ int ObGlobalIndexLookupOpImpl::check_lookup_row_cnt()
"index_group_cnt", get_index_group_cnt(), "index_group_cnt", get_index_group_cnt(),
"lookup_group_cnt", get_lookup_group_cnt(), "lookup_group_cnt", get_lookup_group_cnt(),
"index_table_id", table_scan_op_->get_tsc_spec().get_ref_table_id(), "index_table_id", table_scan_op_->get_tsc_spec().get_ref_table_id(),
K(DAS_CTX(table_scan_op_->get_exec_ctx()).get_snapshot()),
KPC(my_session->get_tx_desc())); KPC(my_session->get_tx_desc()));
//now to dump lookup das task info //now to dump lookup das task info
int64_t rownum = 0; int64_t rownum = 0;