fix implicit start trans not in sysstat

This commit is contained in:
chinaxing 2024-11-15 08:45:10 +00:00 committed by ob-robot
parent 994953205a
commit e918f484ac
2 changed files with 3 additions and 2 deletions

View File

@ -861,6 +861,7 @@ void ObTxDesc::implicit_start_tx_()
expire_ts_ = active_ts_ + timeout_us_;
active_scn_ = get_tx_seq();
state_change_flags_.mark_all();
TX_STAT_START_INC;
}
}

View File

@ -286,8 +286,8 @@ int ObTransService::start_tx(ObTxDesc &tx, const ObTxParam &tx_param, const ObTr
ret = OB_INVALID_ARGUMENT;
TRANS_LOG(WARN, "invalid tx param", K(ret), KR(ret), K(tx_param));
} else {
TX_STAT_START_INC
ObSpinLockGuard guard(tx.lock_);
TX_STAT_START_INC;
ObSpinLockGuard guard(tx.lock_);
tx.inc_op_sn();
if (!tx_id.is_valid()) {
ret = tx_desc_mgr_.add(tx);