mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #8294 from mitake/proxy-cachemiss
proxy: don't inc a cache miss count in a case of linearizable range
This commit is contained in:
commit
fe33bd1879
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user