diff options
author | Lars Wirzenius <liw@liw.fi> | 2017-06-12 21:34:09 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2017-06-12 21:34:09 +0300 |
commit | 611a6c9ab9bfd86e93af943750b0ec5b4dde4e4a (patch) | |
tree | ef88ca8bc3cb8d87dfb09813f24fc0cb276c13fd | |
parent | d68079f0a46b2022d839d16993baaa54a4585866 (diff) | |
download | obnam-611a6c9ab9bfd86e93af943750b0ec5b4dde4e4a.tar.gz |
debug: add logging to see where used-by trees go wrong
-rw-r--r-- | obnamlib/fmt_ga/indexes.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/obnamlib/fmt_ga/indexes.py b/obnamlib/fmt_ga/indexes.py index 6823e68d..682b2c50 100644 --- a/obnamlib/fmt_ga/indexes.py +++ b/obnamlib/fmt_ga/indexes.py @@ -142,6 +142,7 @@ class GAChunkIndexes(object): elif client_id not in client_ids: client_ids.append(client_id) self._used_by_tree.insert(chunk_id, client_ids) + logging.debug('xxx after adding to used-by: chunk %r is used by %r', chunk_id, client_ids) def find_chunk_ids_by_token(self, token): self._load_data() @@ -165,6 +166,7 @@ class GAChunkIndexes(object): def _remove_used_by(self, chunk_id, client_id): still_used = False client_ids = self._used_by_tree.lookup(chunk_id) + logging.debug('xxx chunk %r is used by %r', chunk_id, client_ids) if client_ids is not None and client_id in client_ids: client_ids.remove(client_id) self._used_by_tree.insert(chunk_id, client_ids) |