Skip to content

Commit

Permalink
revert snapshot.py change
Browse files Browse the repository at this point in the history
  • Loading branch information
larkee committed Feb 26, 2020
1 parent 82588e4 commit c67c8ba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions google/cloud/spanner_v1/snapshot.py
Expand Up @@ -225,11 +225,12 @@ def execute_sql(
retry=retry,
timeout=timeout,
)
self._read_request_count += 1
self._execute_sql_count += 1

iterator = _restart_on_unavailable(restart)

self._read_request_count += 1
self._execute_sql_count += 1

if self._multi_use:
return StreamedResultSet(iterator, source=self)
else:
Expand Down

0 comments on commit c67c8ba

Please sign in to comment.