Merge pull request #7307 from heyitsanthony/proxy-countonly

grpcproxy: support CountOnly
This commit is contained in:
Anthony Romano 2017-02-13 13:30:31 -08:00 committed by GitHub
commit e52a985a3a

View File

@ -190,6 +190,9 @@ func RangeRequestToOp(r *pb.RangeRequest) clientv3.Op {
opts = append(opts, clientv3.WithMinCreateRev(r.MinCreateRevision))
opts = append(opts, clientv3.WithMaxModRev(r.MaxModRevision))
opts = append(opts, clientv3.WithMinModRev(r.MinModRevision))
if r.CountOnly {
opts = append(opts, clientv3.WithCountOnly())
}
if r.Serializable {
opts = append(opts, clientv3.WithSerializable())