Merge pull request #1271 from coreos-inc/allocator_bs

Repair allocator (min/max swapped)
This commit is contained in:
Quentin Machu 2016-03-04 12:06:04 -05:00
commit 897df4de32

View file

@ -128,7 +128,7 @@ def yield_random_entries(batch_query, primary_key_field, batch_size, max_id, min
min_id = max(min_id, 0)
max_id = max(max_id, 1)
allocator = CompletedKeys(min_id, max_id + 1)
allocator = CompletedKeys(max_id + 1, min_id)
try:
while True: