X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/ed25806effa22b42397238dd88511ee8b62e0a61..94481d9113220ded7ee6a76a96fa468c79680478:/match.c diff --git a/match.c b/match.c index 1591fdc6..3b205bfb 100644 --- a/match.c +++ b/match.c @@ -38,6 +38,9 @@ static int total_matches=0; static int total_data_transfer=0; +static int check_f_in; + + struct target { tag t; int i; @@ -97,6 +100,7 @@ static void matched(int f,struct sum_struct *s,char *buf,off_t len,int offset,in (int)offset,(int)last_match,i,(int)s->sums[i].len,n); if (n > 0) { + read_check(check_f_in); write_int(f,n); write_buf(f,buf+last_match,n); data_transfer += n; @@ -197,7 +201,7 @@ static void hash_search(int f,struct sum_struct *s,char *buf,off_t len) } -void match_sums(int f,struct sum_struct *s,char *buf,off_t len) +void match_sums(int f,struct sum_struct *s,char *buf,off_t len,int f_in) { last_match = 0; false_alarms = 0; @@ -205,6 +209,8 @@ void match_sums(int f,struct sum_struct *s,char *buf,off_t len) matches=0; data_transfer=0; + check_f_in = f_in; + if (len > 0 && s->count>0) { build_hash_table(s);