Explorar o código

grpcproxy: respect KeysOnly flag

Fixes #8478
Anthony Romano %!s(int64=8) %!d(string=hai) anos
pai
achega
7f4464415a
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      proxy/grpcproxy/kv.go

+ 3 - 1
proxy/grpcproxy/kv.go

@@ -179,7 +179,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())
 	}