|
|
@@ -358,7 +358,7 @@ func parseKeyRequest(r *http.Request, id uint64, clock clockwork.Clock) (etcdser
|
|
|
)
|
|
|
}
|
|
|
|
|
|
- var rec, sort, wait, dir, stream bool
|
|
|
+ var rec, sort, wait, dir, quorum, stream bool
|
|
|
if rec, err = getBool(r.Form, "recursive"); err != nil {
|
|
|
return emptyReq, etcdErr.NewRequestError(
|
|
|
etcdErr.EcodeInvalidField,
|
|
|
@@ -384,6 +384,12 @@ func parseKeyRequest(r *http.Request, id uint64, clock clockwork.Clock) (etcdser
|
|
|
`invalid value for "dir"`,
|
|
|
)
|
|
|
}
|
|
|
+ if quorum, err = getBool(r.Form, "quorum"); err != nil {
|
|
|
+ return emptyReq, etcdErr.NewRequestError(
|
|
|
+ etcdErr.EcodeInvalidField,
|
|
|
+ `invalid value for "quorum"`,
|
|
|
+ )
|
|
|
+ }
|
|
|
if stream, err = getBool(r.Form, "stream"); err != nil {
|
|
|
return emptyReq, etcdErr.NewRequestError(
|
|
|
etcdErr.EcodeInvalidField,
|
|
|
@@ -442,11 +448,12 @@ func parseKeyRequest(r *http.Request, id uint64, clock clockwork.Clock) (etcdser
|
|
|
PrevValue: pV,
|
|
|
PrevIndex: pIdx,
|
|
|
PrevExist: pe,
|
|
|
- Recursive: rec,
|
|
|
+ Wait: wait,
|
|
|
Since: wIdx,
|
|
|
+ Recursive: rec,
|
|
|
Sorted: sort,
|
|
|
+ Quorum: quorum,
|
|
|
Stream: stream,
|
|
|
- Wait: wait,
|
|
|
}
|
|
|
|
|
|
if pe != nil {
|