Skip to content

Commit

Permalink
GetCurrentBP also return BP follower
Browse files Browse the repository at this point in the history
  • Loading branch information
auxten committed Jan 22, 2019
1 parent 8db435d commit cc7fc33
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rpc/rpcutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -356,8 +356,7 @@ func GetCurrentBP() (bpNodeID proto.NodeID, err error) {
ID: localNodeID,
Roles: []proto.ServerRole{
proto.Leader,
// only leader is capable of allocating database in current implementation
//proto.Follower,
proto.Follower,
},
Count: 1,
}
Expand Down

0 comments on commit cc7fc33

Please sign in to comment.