Skip to content

Commit 58bc51d

Browse files
Copilotmykaul
andcommitted
Clarify comment for consistency in paging call
Co-authored-by: mykaul <4655593+mykaul@users.noreply.github.com>
1 parent ef9dc96 commit 58bc51d

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
@@ -3902,7 +3902,7 @@ def _refresh_node_list_and_token_map(self, connection, preloaded_results=None,
39023902
success, local_rpc_address_result = connection.wait_for_response(
39033903
local_rpc_address_query, timeout=self._timeout, fail_on_error=False)
39043904
if success:
3905-
# Fetch all pages if there are more results (system.local table always contains exactly one row)
3905+
# Fetch all pages for consistency (system.local table always contains exactly one row, so this is effectively a no-op)
39063906
local_rpc_address_result = self._fetch_all_pages(connection, local_rpc_address_result,
39073907
local_rpc_address_query, self._timeout)
39083908
row = dict_factory(

0 commit comments

Comments
 (0)