Merge pull request #877 from mjibson/check-max-id

Allow None for max_id during migrations
This commit is contained in:
Matt Jibson 2015-11-13 16:06:58 -05:00
commit 30250bdf7f

View file

@ -126,6 +126,7 @@ def yield_random_entries(batch_query, primary_key_field, batch_size, max_id):
an "id" field which can be inspected.
"""
max_id = max(max_id, 1)
allocator = CompletedKeys(max_id + 1)
try: