Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(774)

Unified Diff: third_party/boto/boto/dynamodb2/results.py

Issue 698893003: Update checked in version of gsutil to version 4.6 (Closed) Base URL: http://dart.googlecode.com/svn/third_party/gsutil/
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/boto/boto/dynamodb2/layer1.py ('k') | third_party/boto/boto/dynamodb2/table.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/boto/boto/dynamodb2/results.py
===================================================================
--- third_party/boto/boto/dynamodb2/results.py (revision 33376)
+++ third_party/boto/boto/dynamodb2/results.py (working copy)
@@ -128,9 +128,18 @@
if self._last_key_seen is not None:
kwargs[self.first_key] = self._last_key_seen
+ # If the page size is greater than limit set them
+ # to the same value
+ if self._limit and self._max_page_size > self._limit:
+ self._max_page_size = self._limit
+
# Put in the max page size.
if self._max_page_size is not None:
kwargs['limit'] = self._max_page_size
+ elif self._limit is not None:
+ # If max_page_size is not set and limit is available
+ # use it as the page size
+ kwargs['limit'] = self._limit
results = self.the_callable(*args, **kwargs)
self._fetches += 1
« no previous file with comments | « third_party/boto/boto/dynamodb2/layer1.py ('k') | third_party/boto/boto/dynamodb2/table.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698