Skip to content

Commit

Permalink
Looks like the wrong name / description
Browse files Browse the repository at this point in the history
Not sure what CommandName() does yet though.
  • Loading branch information
Edward Muller committed May 2, 2014
1 parent 90ce9a8 commit 48590dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/coordinator/command.go
Expand Up @@ -189,11 +189,11 @@ func NewChangeDbUserPermissionsCommand(db, username, readPermissions, writePermi
}

func (c *ChangeDbUserPermissions) CommandName() string {
return "change_db_user_password"
return "change_db_user_permissions"
}

func (c *ChangeDbUserPermissions) Apply(server raft.Server) (interface{}, error) {
log.Debug("(raft:%s) changing db user password for %s:%s", server.Name(), c.Database, c.Username)
log.Debug("(raft:%s) changing db user permissions for %s:%s", server.Name(), c.Database, c.Username)
config := server.Context().(*cluster.ClusterConfiguration)
return nil, config.ChangeDbUserPermissions(c.Database, c.Username, c.ReadPermissions, c.WritePermissions)
}
Expand Down

0 comments on commit 48590dd

Please sign in to comment.