projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch '6362-asset-config' refs #6362
[arvados.git]
/
sdk
/
python
/
arvados
/
_ranges.py
diff --git
a/sdk/python/arvados/_ranges.py
b/sdk/python/arvados/_ranges.py
index 371d003995fb17c276a0638d95e764f80d4d96ab..83437b2adb9f7817ac0b5ee210cfdb6d50915b90 100644
(file)
--- a/
sdk/python/arvados/_ranges.py
+++ b/
sdk/python/arvados/_ranges.py
@@
-99,9
+99,7
@@
def locators_and_ranges(data_locators, range_start, range_size, limit=None):
# We should always start at the first segment due to the binary
# search.
# We should always start at the first segment due to the binary
# search.
- while i < len(data_locators):
- if limit and len(resp) > limit:
- break
+ while i < len(data_locators) and len(resp) != limit:
dl = data_locators[i]
block_start = dl.range_start
block_size = dl.range_size
dl = data_locators[i]
block_start = dl.range_start
block_size = dl.range_size