Skip to content

Commit

Permalink
fix panic
Browse files Browse the repository at this point in the history
Signed-off-by: you06 <[email protected]>
  • Loading branch information
you06 committed Nov 9, 2023
1 parent 33ebc0a commit 47a2c0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oracle/oracles/pd.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ func (o *pdOracle) setLastTS(ts uint64, txnScope string) {
var current *lastTSO
for {
last := lastTSPointer.Load()
if ts <= last.tso {
if last != nil && ts <= last.tso {
return
}
if current == nil {
Expand Down

0 comments on commit 47a2c0b

Please sign in to comment.