Skip to content

Commit d7ac847

Browse files
Copilotmykaul
andcommitted
Clarify comment about restoring paging_state
Rephrase the comment to explain specifically what the restoration prevents: affecting subsequent uses of the QueryMessage object if it's reused elsewhere in the codebase. Co-authored-by: mykaul <4655593+mykaul@users.noreply.github.com>
1 parent 58bc51d commit d7ac847

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cassandra/cluster.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3748,7 +3748,7 @@ def _fetch_all_pages(self, connection, result, query_msg, timeout):
37483748
result.parsed_rows = all_rows
37493749
return result
37503750
finally:
3751-
# Restore original paging_state to avoid side effects
3751+
# Restore original paging_state to prevent affecting subsequent uses of this QueryMessage
37523752
query_msg.paging_state = original_paging_state
37533753

37543754
def shutdown(self):

0 commit comments

Comments
 (0)