Explorar o código

grpcproxy: respect KeysOnly flag

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

+ 3 - 1
proxy/grpcproxy/kv.go

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