[NetStandby] [Patch From 4.2.1 BP3] NetStandby Fetching Log Performance Optimization

This commit is contained in:
zxlzxlzxlzxlzxl
2024-05-15 08:46:08 +00:00
committed by ob-robot
parent f70e4019e2
commit 1d68d4b1ee
4 changed files with 13 additions and 23 deletions

View File

@ -474,7 +474,7 @@ int ObRecoveryLSService::process_ls_tx_log_(ObTxLogBlock &tx_log_block, const SC
const ObTxBufferNodeArray &source_data =
commit_log.get_multi_source_data();
const uint64_t exec_tenant_id = gen_meta_tenant_id(tenant_id_);
START_TRANSACTION(proxy_, exec_tenant_id)
ObMySQLTransaction trans;
for (int64_t i = 0; OB_SUCC(ret) && i < source_data.count(); ++i) {
const ObTxBufferNode &node = source_data.at(i);
if (ObTxDataSourceType::STANDBY_UPGRADE == node.get_data_source_type()) {
@ -484,6 +484,8 @@ int ObRecoveryLSService::process_ls_tx_log_(ObTxLogBlock &tx_log_block, const SC
} else if (ObTxDataSourceType::LS_TABLE != node.get_data_source_type()
&& ObTxDataSourceType::TRANSFER_TASK != node.get_data_source_type()) {
// nothing
} else if (! trans.is_started() && OB_FAIL(trans.start(proxy_, exec_tenant_id))) {
LOG_WARN("failed to start trans", KR(ret), K(exec_tenant_id));
} else if (FALSE_IT(has_operation = true)) {
//can not be there;
} else if (OB_FAIL(check_valid_to_operator_ls_(sync_scn))) {