Skip to content

Commit

Permalink
fix trx log
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyuecai committed Mar 23, 2024
1 parent 0099c43 commit 859a2be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/runtime/transaction/trx_log.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ func (gm *TxLogManager) ScanGlobalTxLog(pageNo, pageSize uint64, conditions []Co
serverId, _ = dest[2].Int64()
log.ServerID = int32(serverId)
state, _ = dest[3].Int64()
log.Status = rcontext.TxState(state)
log.Status = rcontext.TxState(int32(state))

Check failure

Code scanning / CodeQL

Incorrect conversion between integer types High

Incorrect conversion of a signed 64-bit integer from
strconv.ParseInt
to a lower bit size type int32 without an upper bound check.
Incorrect conversion of a signed 64-bit integer from
strconv.ParseInt
to a lower bit size type int32 without an upper bound check.
Incorrect conversion of a signed 64-bit integer from
strconv.ParseInt
to a lower bit size type int32 without an upper bound check.
expectedEndTime, _ = dest[4].Int64()
log.ExpectedEndTime = time.UnixMilli(expectedEndTime)
startTime, _ = dest[5].Int64()
Expand Down

0 comments on commit 859a2be

Please sign in to comment.