stats: fix case where "bytes searched" could be wrong
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Specifically, if the search was instructed to quit early, we might not have correctly marked the number of bytes consumed. I don't think this bug occurs when memory maps are used to read the haystack. Closes #2944
authored by Andrew Gallant · committed by Andrew Gallant · parent 6244e63 · Browse files · 3 files+19 added−1 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
3 files+19 added−1 removed
- tests:+7 added−0 removed
- other:+12 added−1 removed