Skip to content

Commit

Permalink
Fix race condition in numShutDownSig in alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
animesh2049 committed May 14, 2019
1 parent 4ed87b5 commit 0ea0df3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion dgraph/cmd/alpha/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,8 @@ func run() {
}
}
}()
_ = numShutDownSig
// TODO (animesh): Not sure why this was done in the first place
// _ = numShutDownSig

// Setup external communication.
aclCloser := y.NewCloser(1)
Expand Down
2 changes: 0 additions & 2 deletions worker/groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,6 @@ func (g *groupi) applyState(state *pb.MembershipState) {
}

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

Expand Down

0 comments on commit 0ea0df3

Please sign in to comment.