Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
#ifdef calls to hard-link functions.
[rsync/rsync.git]
/
io.c
diff --git
a/io.c
b/io.c
index
33a0e65
..
8fe8284
100644
(file)
--- a/
io.c
+++ b/
io.c
@@
-336,19
+336,21
@@
void increment_active_files(int ndx, int itemizing, enum logcode code)
{
/* TODO: tune these limits? */
while (active_filecnt >= (active_bytecnt >= 128*1024 ? 10 : 50)) {
{
/* TODO: tune these limits? */
while (active_filecnt >= (active_bytecnt >= 128*1024 ? 10 : 50)) {
+#ifdef SUPPORT_HARD_LINKS
if (hlink_list.head)
check_for_finished_hlinks(itemizing, code);
if (hlink_list.head)
check_for_finished_hlinks(itemizing, code);
+#endif
read_msg_fd();
}
active_filecnt++;
read_msg_fd();
}
active_filecnt++;
- active_bytecnt +=
the_file_list->files[ndx]->length
;
+ active_bytecnt +=
F_LENGTH(the_file_list->files[ndx])
;
}
void decrement_active_files(int ndx)
{
active_filecnt--;
}
void decrement_active_files(int ndx)
{
active_filecnt--;
- active_bytecnt -=
the_file_list->files[ndx]->length
;
+ active_bytecnt -=
F_LENGTH(the_file_list->files[ndx])
;
}
/* Try to push messages off the list onto the wire. If we leave with more
}
/* Try to push messages off the list onto the wire. If we leave with more
@@
-415,8
+417,10
@@
void send_msg_int(enum msgcode code, int num)
int get_redo_num(int itemizing, enum logcode code)
{
while (1) {
int get_redo_num(int itemizing, enum logcode code)
{
while (1) {
+#ifdef SUPPORT_HARD_LINKS
if (hlink_list.head)
check_for_finished_hlinks(itemizing, code);
if (hlink_list.head)
check_for_finished_hlinks(itemizing, code);
+#endif
if (redo_list.head)
break;
read_msg_fd();
if (redo_list.head)
break;
read_msg_fd();