]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
Defer forwarding messages during the forwarding of flist data.
authorWayne Davison <wayned@samba.org>
Mon, 21 Dec 2009 21:48:44 +0000 (13:48 -0800)
committerWayne Davison <wayned@samba.org>
Mon, 21 Dec 2009 21:48:44 +0000 (13:48 -0800)
io.c

diff --git a/io.c b/io.c
index 5b3c2ad156433a477c9ee6d3e3db71147cd494c7..578d2562fd832b55d33475b0334752fcad03ed13 100644 (file)
--- 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);
 }