From ea013b80661d312a41e1f48b6254f090a43bc199 Mon Sep 17 00:00:00 2001 From: Quentin Machu Date: Tue, 1 Mar 2016 14:54:38 -0500 Subject: [PATCH] make min_index optionnal in allocator's constructor --- util/migrate/allocator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/migrate/allocator.py b/util/migrate/allocator.py index bf998e1dd..8943a50c6 100644 --- a/util/migrate/allocator.py +++ b/util/migrate/allocator.py @@ -14,7 +14,7 @@ class NoAvailableKeysError(ValueError): class CompletedKeys(object): - def __init__(self, min_index, max_index): + def __init__(self, max_index, min_index=0): self._max_index = max_index self._min_index = min_index self._slabs = RBTree()