Unverified Commit 073634ff authored by Steven Allen's avatar Steven Allen Committed by GitHub

Merge pull request #20 from MichaelMure/fix-getsize

fix GetSize calls reported as Has
parents 7bcedfd9 a5555908
......@@ -170,10 +170,11 @@ func (m *measure) Has(key datastore.Key) (exists bool, err error) {
func (m *measure) GetSize(key datastore.Key) (size int, err error) {
defer recordLatency(m.getsizeLatency, time.Now())
m.hasNum.Inc()
m.getsizeNum.Inc()
size, err = m.backend.GetSize(key)
switch err {
case nil, datastore.ErrNotFound:
// Not really an error.
default:
m.getsizeErr.Inc()
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment