From: Wayne Davison Date: Mon, 21 Dec 2009 21:48:44 +0000 (-0800) Subject: Defer forwarding messages during the forwarding of flist data. X-Git-Tag: v3.0.7pre1~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96cce18ce67f132a851c4e37b03fd09b8683233a;p=thirdparty%2Frsync.git Defer forwarding messages during the forwarding of flist data. --- diff --git a/io.c b/io.c index 5b3c2ad1..578d2562 100644 --- a/io.c +++ b/io.c @@ -970,11 +970,13 @@ void start_flist_forward(int f_in) assert(iobuf_out != NULL); assert(iobuf_f_out == msg_fd_out); flist_forward_from = f_in; + defer_forwarding_messages++; } -void stop_flist_forward() +void stop_flist_forward(void) { flist_forward_from = -1; + defer_forwarding_messages--; io_flush(FULL_FLUSH); }