Skip to content

Commit

Permalink
Merge pull request #2444 from cockroachdb/kkaneda/remove_ref_count
Browse files Browse the repository at this point in the history
Remove refCount from node
  • Loading branch information
kkaneda committed Sep 10, 2015
2 parents 1bc6309 + 2227792 commit 8ec92c5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions multiraft/multiraft.go
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,6 @@ type removeGroupOp struct {
// node represents a connection to a remote node.
type node struct {
nodeID proto.RaftNodeID
refCount int
groupIDs map[proto.RangeID]struct{}
}

Expand Down Expand Up @@ -629,7 +628,6 @@ func (s *state) addNode(nodeID proto.RaftNodeID, g *group) error {
if !ok {
s.nodes[nodeID] = &node{
nodeID: nodeID,
refCount: 1,
groupIDs: make(map[proto.RangeID]struct{}),
}
newNode = s.nodes[nodeID]
Expand Down

0 comments on commit 8ec92c5

Please sign in to comment.