From b3b2041d39a65129484a009d9f46f9ee7fe68b4c Mon Sep 17 00:00:00 2001 From: Kenji Kaneda Date: Fri, 26 Jun 2015 22:45:08 -0700 Subject: [PATCH] Tiny fix: Update a comment on gossip in InternalLeaderLease() The code was changed by #884 so that gossip is published even when the replica is not a new lease holder. --- storage/range_command.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/storage/range_command.go b/storage/range_command.go index 2af137bacc22..c94c7f0dd99c 100644 --- a/storage/range_command.go +++ b/storage/range_command.go @@ -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))