Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
NamanJain8 committed Apr 21, 2021
1 parent 0433d60 commit 8e0c4d8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xidmap/xidmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,9 @@ func (m *XidMap) updateMaxSeen(max uint64) {
// BumpTo can be used to make Zero allocate UIDs up to this given number. Attempts are made to
// ensure all future allocations of UIDs be higher than this one, but results are not guaranteed.
func (m *XidMap) BumpTo(uid uint64) {
// If we have a cluster that cannot lease out new UIDs because it has already leased upto its
// max limit. Now, we try to live load the data with the given UIDs and the AssignIds complains
// that the limit has reached. Hence, update the xidmap's maxSeenUid and make progress.
updateLease := func(msg string) {
if !strings.Contains(msg, "limit has reached. currMax:") {
return
Expand Down

0 comments on commit 8e0c4d8

Please sign in to comment.