Skip to content

ResultSet: Fix incorrect count due to delayed iteration - #176

Merged
nilmerg merged 1 commit into
mainfrom
fix/result-set-count-changes-due-to-iteration
Sep 24, 2026
Merged

nilmerg merged 1 commit into
mainfrom
fix/result-set-count-changes-due-to-iteration

Conversation

@nilmerg

@nilmerg nilmerg commented Sep 24, 2026

Copy link
Copy Markdown
Member

ResultSet::advance() is now responsible to keep track of both the position and count while the original generator is still being traversed. Once it is exhausted, the count does not change anymore in case the cache is enabled.

Uncovered by Icinga/icingadb-web#1422 (review)

`ResultSet::advance()` is now responsible to keep track
of both the position and count while the original generator
is still being traversed. Once it is exhausted, the count
does not change anymore in case the cache is enabled.
@nilmerg nilmerg self-assigned this Sep 24, 2026
@cla-bot cla-bot Bot added the cla/signed label Sep 24, 2026
@nilmerg
nilmerg marked this pull request as ready for review September 24, 2026 11:51
@nilmerg
nilmerg merged commit d4f33f0 into main Sep 24, 2026
13 checks passed
@nilmerg
nilmerg deleted the fix/result-set-count-changes-due-to-iteration branch September 24, 2026 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants