diff options
author | Lars Wirzenius <liw@liw.fi> | 2010-06-29 20:11:39 +1200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2010-06-29 20:11:39 +1200 |
commit | 6783ff0d6c8aaea7cfcd74542b6a4ce7313f19fd (patch) | |
tree | f57eeea5265e886a541ddcd2a5115b3445dc7d2b | |
parent | 5b458cd48ccca5009964240de301fed5dc819edb (diff) | |
download | obnam-6783ff0d6c8aaea7cfcd74542b6a4ce7313f19fd.tar.gz |
Make put_chunk jump to random id if there's a collision.
-rw-r--r-- | obnamlib/store.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/obnamlib/store.py b/obnamlib/store.py index a620826d..9040fb80 100644 --- a/obnamlib/store.py +++ b/obnamlib/store.py @@ -873,6 +873,7 @@ class Store(object): filename = self._chunk_filename(chunkid) if not self.fs.exists(filename): break + self.prev_chunkid = random_chunkid() # pragma: no cover self.prev_chunkid = chunkid dirname = os.path.dirname(filename) if not self.fs.exists(dirname): |