Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblongpath-rsync
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liblongpath
liblongpath-rsync
Commits
fe16d9a6
Commit
fe16d9a6
authored
Oct 30, 2009
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a hang when dealing with really large numbers of files
in an incremental recursion scan.
parent
23a0d1e2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
flist.c
flist.c
+1
-0
sender.c
sender.c
+4
-0
No files found.
flist.c
View file @
fe16d9a6
...
...
@@ -2349,6 +2349,7 @@ struct file_list *send_file_list(int f, int argc, char *argv[])
flist
->
sorted
=
flist
->
files
;
flist_sort_and_clean
(
flist
,
0
);
file_total
+=
flist
->
used
;
file_old_total
+=
flist
->
used
;
if
(
numeric_ids
<=
0
&&
!
inc_recurse
)
send_id_list
(
f
);
...
...
sender.c
View file @
fe16d9a6
...
...
@@ -42,6 +42,7 @@ extern int make_backups;
extern
int
inplace
;
extern
int
batch_fd
;
extern
int
write_batch
;
extern
int
file_old_total
;
extern
struct
stats
stats
;
extern
struct
file_list
*
cur_flist
,
*
first_flist
,
*
dir_flist
;
...
...
@@ -197,8 +198,11 @@ void send_files(int f_in, int f_out)
end_progress
(
0
);
}
if
(
inc_recurse
&&
first_flist
)
{
file_old_total
-=
first_flist
->
used
;
flist_free
(
first_flist
);
if
(
first_flist
)
{
if
(
first_flist
==
cur_flist
)
file_old_total
=
cur_flist
->
used
;
write_ndx
(
f_out
,
NDX_DONE
);
continue
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment