[CP] fix core in debug compile for tx-table-lock

This commit is contained in:
chinaxing
2023-11-02 10:09:32 +00:00
committed by ob-robot
parent 809a77afac
commit 5f12f935b1

View File

@ -1108,7 +1108,7 @@ int ObOBJLock::get_lock_op_iter(const ObLockID &lock_id,
tmp_op.op_type_ = IN_TRANS_DML_LOCK;
tmp_op.lock_op_status_ = LOCK_OP_DOING;
// we use this one for the count.
tmp_op.lock_seq_no_ = ObTxSEQ(row_exclusive_, 0);
tmp_op.lock_seq_no_ = ObTxSEQ::cast_from_int(row_exclusive_);
if (OB_FAIL(iter.push(tmp_op))) {
TABLELOCK_LOG(WARN, "push tmp lock op into iterator failed", K(ret), K(tmp_op));
}