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
d620219d
Commit
d620219d
authored
Nov 03, 2007
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A better way to count our queued workload.
parent
c0685c05
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
15 deletions
+6
-15
flist.c
flist.c
+5
-8
generator.c
generator.c
+1
-7
No files found.
flist.c
View file @
d620219d
...
...
@@ -1657,19 +1657,17 @@ void send_extra_file_list(int f, int at_least)
struct
file_list
*
flist
;
int64
start_write
;
uint16
prev_flags
;
int
future
_cnt
,
save_io_error
=
io_error
;
int
old
_cnt
,
save_io_error
=
io_error
;
if
(
flist_eof
)
return
;
/* Keep sending data until we have the requested number of
* files in the upcoming file-lists. */
if
(
cur_flist
->
next
)
{
flist
=
first_flist
->
prev
;
/* the newest flist */
future_cnt
=
flist
->
ndx_end
-
cur_flist
->
next
->
ndx_start
+
1
;
}
else
future_cnt
=
0
;
while
(
future_cnt
<
at_least
)
{
old_cnt
=
cur_flist
->
used
;
for
(
flist
=
first_flist
;
flist
!=
cur_flist
;
flist
=
flist
->
next
)
old_cnt
+=
flist
->
used
;
while
(
file_total
-
old_cnt
<
at_least
)
{
struct
file_struct
*
file
=
dir_flist
->
sorted
[
send_dir_ndx
];
int
dir_ndx
,
dstart
=
dir_count
;
const
char
*
pathname
=
F_PATHNAME
(
file
);
...
...
@@ -1730,7 +1728,6 @@ void send_extra_file_list(int f, int at_least)
flist_done_allocating
(
flist
);
file_total
+=
flist
->
used
;
future_cnt
+=
flist
->
used
;
stats
.
flist_size
+=
stats
.
total_written
-
start_write
;
stats
.
num_files
+=
flist
->
used
;
if
(
verbose
>
3
)
...
...
generator.c
View file @
d620219d
...
...
@@ -2027,14 +2027,8 @@ void generate_files(int f_out, const char *local_name)
do
{
#ifdef SUPPORT_HARD_LINKS
if
(
preserve_hard_links
&&
inc_recurse
)
{
while
(
!
flist_eof
)
{
int
cnt
=
first_flist
->
prev
?
first_flist
->
prev
->
ndx_end
-
first_flist
->
ndx_start
+
1
:
first_flist
->
ndx_end
-
first_flist
->
ndx_start
+
1
;
if
(
cnt
>=
FILECNT_LOOKAHEAD
/
2
)
break
;
while
(
!
flist_eof
&&
file_total
<
FILECNT_LOOKAHEAD
/
2
)
wait_for_receiver
();
}
}
#endif
...
...
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