refactor store.go add set function

This commit is contained in:
Xiang Li
2013-10-14 23:04:21 -07:00
parent 278a089908
commit fbf40fb74a
5 changed files with 19 additions and 8 deletions

View File

@ -27,7 +27,7 @@ func (c *CreateCommand) CommandName() string {
func (c *CreateCommand) Apply(server raft.Server) (interface{}, error) {
s, _ := server.StateMachine().(Store)
e, err := s.Create(c.Key, c.Value, c.IncrementalSuffix, false, c.ExpireTime, server.CommitIndex(), server.Term())
e, err := s.Create(c.Key, c.Value, c.IncrementalSuffix, c.ExpireTime, server.CommitIndex(), server.Term())
if err != nil {
log.Debug(err)