Skip to content

Commit

Permalink
fix(full scan thread): Added missing fetch-next-page to fetch_result_…
Browse files Browse the repository at this point in the history
…pages

fetch_result_pages had a "while" loop where a call to result.fetch_next_page()
is missing. Adding it back.
Fixes: #8287
  • Loading branch information
yarongilor authored and fruch committed Oct 31, 2024
1 parent 7843142 commit 3f0b2f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sdcm/scan_operation_thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ def fetch_result_pages(self, result, read_pages):
self.log.debug('Will fetch up to %s result pages..', read_pages)
pages = 0
while result.has_more_pages and pages <= read_pages:
result.fetch_next_page()
if read_pages > 0:
pages += 1

Expand Down

0 comments on commit 3f0b2f3

Please sign in to comment.