Minor fixes.

This commit is contained in:
Ben Johnson
2014-03-04 09:15:15 -07:00
parent c3b4afc139
commit fe4dee03ab
3 changed files with 16 additions and 13 deletions

View File

@@ -43,7 +43,7 @@ func (c *DemoteCommand) Apply(context raft.Context) (interface{}, error) {
// Update mode if this change applies to this server.
if c.Name == ps.Config.Name {
log.Infof("Set mode after demotion: %s", c.Name)
ps.SetMode(ProxyMode)
ps.setMode(ProxyMode)
}
return nil, nil