Skip to content

Commit

Permalink
handle multiple keys for the same oid in _conflict_cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Jens Hinghaus committed May 9, 2019
1 parent ce3b741 commit 8c581db
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/tempstorage/TemporaryStorage.py
Expand Up @@ -321,10 +321,9 @@ def _takeOutGarbage(self, oid):
pass

# remove this object from the conflict cache if it exists there
for k in self._conflict_cache.keys():
for k in list(self._conflict_cache.keys()):
if k[0] == oid:
del self._conflict_cache[k]
break

# Remove/decref references
roids = self._oreferences.get(oid, [])
Expand Down

0 comments on commit 8c581db

Please sign in to comment.