diff --git a/proxy/grpcproxy/kv.go b/proxy/grpcproxy/kv.go index 65f850ed4..e8ea67cde 100644 --- a/proxy/grpcproxy/kv.go +++ b/proxy/grpcproxy/kv.go @@ -206,6 +206,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...) }