Increment counts in correct usage points
This commit is contained in:
parent
c91f6233ef
commit
c64b40b4ad
1 changed files with 2 additions and 3 deletions
|
|
@ -185,18 +185,17 @@ loop:
|
||||||
break loop
|
break loop
|
||||||
default:
|
default:
|
||||||
lastSeqNum = *r.SequenceNumber
|
lastSeqNum = *r.SequenceNumber
|
||||||
|
c.counter.Add("records", 1)
|
||||||
if ok := fn(r); !ok {
|
if ok := fn(r); !ok {
|
||||||
break loop
|
break loop
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
c.counter.Add("records", int64(len(resp.Records)))
|
|
||||||
c.counter.Add("checkpoints", 1)
|
|
||||||
|
|
||||||
if err := c.checkpoint.Set(shardID, lastSeqNum); err != nil {
|
if err := c.checkpoint.Set(shardID, lastSeqNum); err != nil {
|
||||||
c.logger.Printf("set checkpoint error: %v", err)
|
c.logger.Printf("set checkpoint error: %v", err)
|
||||||
}
|
}
|
||||||
|
c.counter.Add("checkpoints", 1)
|
||||||
}
|
}
|
||||||
|
|
||||||
if resp.NextShardIterator == nil || shardIterator == resp.NextShardIterator {
|
if resp.NextShardIterator == nil || shardIterator == resp.NextShardIterator {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue