From e2ca5caaa08cbf8eca0c16ac769bc34e47f7262a Mon Sep 17 00:00:00 2001 From: Manish R Jain <manish@dgraph.io> Date: Sat, 16 Jun 2018 09:05:27 -0700 Subject: [PATCH] Small clarifying comment. --- dgraph/cmd/zero/assign.go | 1 + 1 file changed, 1 insertion(+) diff --git a/dgraph/cmd/zero/assign.go b/dgraph/cmd/zero/assign.go index 12057e3b..700d30b6 100644 --- a/dgraph/cmd/zero/assign.go +++ b/dgraph/cmd/zero/assign.go @@ -52,6 +52,7 @@ func (s *Server) maxTxnTs() uint64 { // This function is triggered by an RPC call. We ensure that only leader can assign new UIDs, // so we can tackle any collisions that might happen with the leasemanager // In essence, we just want one server to be handing out new uids. +// This returns ids in range [num.StartId, num.EndId], both ends inclusive. func (s *Server) lease(ctx context.Context, num *intern.Num, txn bool) (*api.AssignedIds, error) { node := s.Node // TODO: Fix when we move to linearizable reads, need to check if we are the leader, might be -- GitLab