Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tiny fix: Update a comment on gossip in InternalLeaderLease() #1524

Merged
merged 1 commit into from
Jun 28, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions storage/range_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -764,10 +764,10 @@ func (r *Range) InternalLeaderLease(batch engine.Engine, ms *engine.MVCCStats, a
}
atomic.StorePointer(&r.lease, unsafe.Pointer(&args.Lease))

// If this replica is a new holder of the lease, gossip configs as
// necessary. Update the low water mark in the timestamp cache. We
// add the maximum clock offset to account for any difference in
// clocks between the expiration (set by a remote node) and this
// If this replica is a new holder of the lease, update the
// low water mark in the timestamp cache. We add the maximum
// clock offset to account for any difference in clocks
// between the expiration (set by a remote node) and this
// node.
if r.getLease().RaftNodeID == r.rm.RaftNodeID() && prevLease.RaftNodeID != r.getLease().RaftNodeID {
r.tsCache.SetLowWater(prevLease.Expiration.Add(int64(r.rm.Clock().MaxOffset()), 0))
Expand Down