grpcproxy: forward PrevKv flag in Put

This commit is contained in:
Anthony Romano 2017-08-03 21:38:20 -07:00
parent c3ae033f25
commit 6a4194c556

View File

@ -196,6 +196,9 @@ func PutRequestToOp(r *pb.PutRequest) clientv3.Op {
if r.IgnoreLease {
opts = append(opts, clientv3.WithIgnoreLease())
}
if r.PrevKv {
opts = append(opts, clientv3.WithPrevKV())
}
return clientv3.OpPut(string(r.Key), string(r.Value), opts...)
}