Skip to content

Commit 3bc321a

Browse files
committed
Fix race condition in numShutDownSig in alpha
1 parent 4ed87b5 commit 3bc321a

2 files changed

Lines changed: 0 additions & 3 deletions

File tree

dgraph/cmd/alpha/run.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,6 @@ func run() {
555555
}
556556
}
557557
}()
558-
_ = numShutDownSig
559558

560559
// Setup external communication.
561560
aclCloser := y.NewCloser(1)

worker/groups.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,6 @@ func (g *groupi) applyState(state *pb.MembershipState) {
289289
}
290290

291291
func (g *groupi) ServesGroup(gid uint32) bool {
292-
// No need to acquire the lock on g because gid is always
293-
// accessed atomically via groupId() function
294292
return g.groupId() == gid
295293
}
296294

0 commit comments

Comments
 (0)