mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-10-24 14:48:16 -04:00
- Moved the second send_extr_file_list() call to a better spot.
- Moved the FILECNT_LOOKAHEAD define into rsync.h.
This commit is contained in:
1 parent
be91bd81b8
commit
3831f06319
3 files changed
+4
-5
No files matched your search
@@ -182,6 +182,8 @@ int read_ndx_and_attrs(int f_in, int f_out, int *iflag_ptr,
|
||||
exit_cleanup(RERR_PROTOCOL);
|
||||
}
|
||||
} else if (f_out >= 0) {
|
||||
if (inc_recurse)
|
||||
send_extra_file_list(f_out, FILECNT_LOOKAHEAD);
|
||||
write_ndx_and_attrs(f_out, ndx, iflags,
|
||||
fnamecmp_type, buf, len);
|
||||
}
|
||||
|
||||
@@ -104,6 +104,8 @@
|
||||
#define OLD_PROTOCOL_VERSION 25
|
||||
#define MAX_PROTOCOL_VERSION 40
|
||||
|
||||
#define FILECNT_LOOKAHEAD 1000
|
||||
|
||||
#define RSYNC_PORT 873
|
||||
|
||||
#define SPARSE_WRITE_SIZE (1024)
|
||||
|
||||
@@ -44,8 +44,6 @@ extern int write_batch;
|
||||
extern struct stats stats;
|
||||
extern struct file_list *cur_flist, *first_flist;
|
||||
|
||||
#define FILECNT_LOOKAHEAD 1000
|
||||
|
||||
/**
|
||||
* @file
|
||||
*
|
||||
@@ -203,9 +201,6 @@ void send_files(int f_in, int f_out)
|
||||
continue;
|
||||
}
|
||||
|
||||
if (inc_recurse)
|
||||
send_extra_file_list(f_out, FILECNT_LOOKAHEAD);
|
||||
|
||||
file = cur_flist->files[ndx - cur_flist->ndx_start];
|
||||
if (F_ROOTDIR(file)) {
|
||||
path = F_ROOTDIR(file);
|
||||
|
||||
Reference in new issue
Block a user