deardeng commented on code in PR #67761:
URL: https://github.com/apache/doris/pull/67761#discussion_r3976391404
##########
cloud/src/meta-service/meta_service_txn.cpp:
##########
@@ -4641,9 +4660,12 @@ void MetaServiceImpl::get_prepare_txn_by_coordinator(
return;
}
RPC_RATE_LIMIT(get_prepare_txn_by_coordinator);
- std::string begin_info_key = txn_info_key({instance_id, 0, 0});
- std::string end_info_key = txn_info_key({instance_id, INT64_MAX,
INT64_MAX});
- LOG(INFO) << "begin_info_key:" << hex(begin_info_key) << " end_info_key:"
<< hex(end_info_key);
+ const bool scan_by_running_key =
config::enable_get_prepare_txn_by_coordinator_by_running_key;
+ std::string begin_key = scan_by_running_key ?
txn_running_key({instance_id, 0, 0})
+ : txn_info_key({instance_id,
0, 0});
+ std::string end_key = scan_by_running_key ? txn_running_key({instance_id,
INT64_MAX, INT64_MAX})
+ : txn_info_key({instance_id,
INT64_MAX, INT64_MAX});
+ LOG(INFO) << "begin_key:" << hex(begin_key) << " end_key:" << hex(end_key);
Review Comment:
add log scan_by_running_key?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]