From 2fce80e4c06b9aa7e75361f1abc2bf4898fcd547 Mon Sep 17 00:00:00 2001 From: sharat Date: Wed, 25 Jan 2017 03:14:31 +0530 Subject: [PATCH] grpcproxy: handle 'IgnoreLease' field in PutRequest --- proxy/grpcproxy/kv.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/proxy/grpcproxy/kv.go b/proxy/grpcproxy/kv.go index 955e2a3fe..3729d65a5 100644 --- a/proxy/grpcproxy/kv.go +++ b/proxy/grpcproxy/kv.go @@ -197,6 +197,9 @@ func PutRequestToOp(r *pb.PutRequest) clientv3.Op { if r.IgnoreValue { opts = append(opts, clientv3.WithIgnoreValue()) } + if r.IgnoreLease { + opts = append(opts, clientv3.WithIgnoreLease()) + } return clientv3.OpPut(string(r.Key), string(r.Value), opts...) }