Commit 8d3cadec authored by owsla's avatar owsla

Fix "too many open files" bug when handling large directories.


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@832 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent e54aff90
New in v1.1.13 (????/??/??) New in v1.1.13 (????/??/??)
--------------------------- ---------------------------
Fix "too many open files" bug when handling large directories. Patch
from Anonymous in Savannah bug #20528.
New options: --tempdir and --remote-tempdir. The first one sets the New options: --tempdir and --remote-tempdir. The first one sets the
directory that rdiff-backup uses for temporary files on the local system. directory that rdiff-backup uses for temporary files on the local system.
The second adds the --tempdir option with the given path when invoking The second adds the --tempdir option with the given path when invoking
......
...@@ -224,7 +224,7 @@ class DataSide(backup.SourceStruct): ...@@ -224,7 +224,7 @@ class DataSide(backup.SourceStruct):
"""Return 0 if full compare of data matches, 1 otherwise""" """Return 0 if full compare of data matches, 1 otherwise"""
if src_rp.getsize() != repo_rorp.getsize(): return 1 if src_rp.getsize() != repo_rorp.getsize(): return 1
return not robust.check_common_error(error_handler, return not robust.check_common_error(error_handler,
rpath.cmpfileobj, (src_rp.open("rb"), repo_rorp.open("rb"))) rpath.cmp, (src_rp, repo_rorp))
for repo_rorp in repo_iter: for repo_rorp in repo_iter:
src_rp = src_root.new_index(repo_rorp.index) src_rp = src_root.new_index(repo_rorp.index)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment