diff options
author | Lars Wirzenius <liw@liw.fi> | 2017-06-24 21:43:40 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2017-06-24 21:43:40 +0300 |
commit | 052980a825734212bc979e5b011399dd53f2153b (patch) | |
tree | 9c56e1f143afa38023f62077be20bd870a23fe4d | |
parent | 1d1d2fcfbf2af0e0738073898f91de03e3fccf28 (diff) | |
download | obnam-052980a825734212bc979e5b011399dd53f2153b.tar.gz |
Fix: store correct key range for a leaf
We can't rely on leaf.keys() being sorted, so we do that ourselves.
-rw-r--r-- | obnamlib/fmt_ga/cowtree.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/obnamlib/fmt_ga/cowtree.py b/obnamlib/fmt_ga/cowtree.py index c507fca3..f4be1ed9 100644 --- a/obnamlib/fmt_ga/cowtree.py +++ b/obnamlib/fmt_ga/cowtree.py @@ -98,7 +98,7 @@ class CowTree(object): def _add_leaf(self, leaf_list, leaf): leaf_id = self._store.put_leaf(leaf) - keys = leaf.keys() + keys = list(sorted(leaf.keys())) leaf_list.add(leaf_id, keys[0], keys[-1]) def _put_leaf_list(self, leaf_list): |