Add minimum active size and promote delay.

This commit is contained in:
Ben Johnson
2014-03-10 14:44:04 -06:00
parent c91688315a
commit c0a59b3a27
4 changed files with 19 additions and 13 deletions

View File

@ -21,5 +21,6 @@ func (c *SetClusterConfigCommand) CommandName() string {
// Apply updates the cluster configuration.
func (c *SetClusterConfigCommand) Apply(context raft.Context) (interface{}, error) {
ps, _ := context.Server().Context().(*PeerServer)
return nil, ps.SetClusterConfig(c.Config)
ps.SetClusterConfig(c.Config)
return nil, nil
}