1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-03-13 07:33:47 +00:00

Slightly lower the number of file descriptors kept open

This is needed to support old version of sftp-server that only
support 100 open file descriptors. Closes #40.
This commit is contained in:
Jonas Borgström 2014-02-17 21:16:04 +01:00
parent 893120e609
commit 7bcb0f97d6

View file

@ -357,7 +357,7 @@ class LoggedIO(object):
_commit = header_no_crc_fmt.pack(9, TAG_COMMIT) _commit = header_no_crc_fmt.pack(9, TAG_COMMIT)
COMMIT = crc_fmt.pack(crc32(_commit)) + _commit COMMIT = crc_fmt.pack(crc32(_commit)) + _commit
def __init__(self, path, limit, segments_per_dir, capacity=100): def __init__(self, path, limit, segments_per_dir, capacity=90):
self.path = path self.path = path
self.fds = LRUCache(capacity) self.fds = LRUCache(capacity)
self.segment = 0 self.segment = 0