grpcproxy: respect KeysOnly flag

Fixes #8478
This commit is contained in:
Anthony Romano 2017-09-13 09:57:08 -07:00 committed by Gyu-Ho Lee
parent 15e9510d2c
commit 01c4f35b30

View File

@ -189,7 +189,9 @@ func RangeRequestToOp(r *pb.RangeRequest) clientv3.Op {
if r.CountOnly {
opts = append(opts, clientv3.WithCountOnly())
}
if r.KeysOnly {
opts = append(opts, clientv3.WithKeysOnly())
}
if r.Serializable {
opts = append(opts, clientv3.WithSerializable())
}