Skip to content

Commit

Permalink
Merge branch 'master' into check-server-start
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot[bot] authored Jan 2, 2025
2 parents 650f562 + 0bfa31f commit 6186e8c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -2283,7 +2283,8 @@ func (c *RaftCluster) CheckAndUpdateMinResolvedTS() (uint64, bool) {
newMinResolvedTS = s.GetMinResolvedTS()
}
}
oldMinResolvedTS := c.minResolvedTS.Load().(uint64)
// Avoid panic when minResolvedTS is not initialized.
oldMinResolvedTS, _ := c.minResolvedTS.Load().(uint64)
if newMinResolvedTS == math.MaxUint64 || newMinResolvedTS <= oldMinResolvedTS {
return oldMinResolvedTS, false
}
Expand Down

0 comments on commit 6186e8c

Please sign in to comment.