etcdhttp: parse boolpointer

This commit is contained in:
Xiang Li
2014-08-28 11:33:24 -07:00
committed by Yicheng Qin
parent c7cb8275c3
commit c84a25e433

View File

@ -97,9 +97,9 @@ func parseRequest(r *http.Request) etcdserverpb.Request {
// PrevExists is nullable, so we leave it null if prevExist wasn't
// specified.
_, ok := q["wait"]
_, ok := q["prevExists"]
if ok {
bv := parseBool(q.Get("wait"))
bv := parseBool(q.Get("prevExists"))
rr.PrevExists = &bv
}