proxy: don't inc a cache miss count in a case of linearizable range

Requests of linearizable range don't touch the cache of grpcproxy. So
incrementing the miss count wouldn't be meaningful.
This commit is contained in:
Hitoshi Mitake 2017-07-20 21:51:10 -07:00
parent a64d15eeed
commit 488df4db34

View File

@ -48,8 +48,9 @@ func (p *kvProxy) Range(ctx context.Context, r *pb.RangeRequest) (*pb.RangeRespo
cacheHits.Inc()
return nil, err
}
cachedMisses.Inc()
}
cachedMisses.Inc()
resp, err := p.kv.Do(ctx, RangeRequestToOp(r))
if err != nil {