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 859a2be commit 5a62088
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/runtime/context/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const (
)

// TxState Transaction status
type TxState int32
type TxState int64

const (
_ TxState = iota
Expand Down
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(int32(state))
log.Status = rcontext.TxState(state)
expectedEndTime, _ = dest[4].Int64()
log.ExpectedEndTime = time.UnixMilli(expectedEndTime)
startTime, _ = dest[5].Int64()
Expand Down

0 comments on commit 5a62088

Please sign in to comment.