store: fix recursive/dir arguments

This commit is contained in:
Jonathan Boulle
2014-09-22 14:40:19 -07:00
parent 34380ab096
commit e08df4c8d2
2 changed files with 2 additions and 2 deletions

View File

@ -269,7 +269,7 @@ func (s *EtcdServer) apply(r pb.Request) Response {
case r.PrevIndex > 0 || r.PrevValue != "":
return f(s.Store.CompareAndDelete(r.Path, r.PrevValue, r.PrevIndex))
default:
return f(s.Store.Delete(r.Path, r.Recursive, r.Dir))
return f(s.Store.Delete(r.Path, r.Dir, r.Recursive))
}
case "QGET":
return f(s.Store.Get(r.Path, r.Recursive, r.Sorted))