mirror of https://github.com/borgbackup/borg.git
046f9fe392
The intention of LockRoster.modify(key, REMOVE) is to remove self.id. Using set.discard will just ignore it if self.id is not present there anymore. Previously, using set.remove triggered a KeyError that has been frequently seen in tracebacks of teardowns involving Repository.__del__ and Repository.__exit__. I added a REMOVE2 op to serve one caller that needs to get the KeyError if self.id was not present. Thanks to @herrmanntom for the workaround! |
||
---|---|---|
.. | ||
archiver | ||
__init__.py | ||
archive.py | ||
benchmark.py | ||
cache.py | ||
checksums.py | ||
chunker.py | ||
chunker_pytest.py | ||
chunker_slow.py | ||
compress.py | ||
crypto.py | ||
efficient_collection_queue.py | ||
file_integrity.py | ||
hashindex.py | ||
hashindex_pytest.py | ||
helpers.py | ||
item.py | ||
key.py | ||
locking.py | ||
logger.py | ||
lrucache.py | ||
nanorst.py | ||
patterns.py | ||
platform.py | ||
platform_darwin.py | ||
platform_freebsd.py | ||
platform_linux.py | ||
platform_posix.py | ||
remote.py | ||
repoobj.py | ||
repository.py | ||
shellpattern.py | ||
version.py | ||
xattr.py |