Skip to content
Snippets Groups Projects
Unverified Commit e2ca5caa authored by Manish R Jain's avatar Manish R Jain
Browse files

Small clarifying comment.

parent 4e468f6b
Branches mrjn/stream
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment