Moved the reading of the final MSG_DONE message here from main.c
authorWayne Davison <wayned@samba.org>
Mon, 10 Jan 2005 00:31:55 +0000 (00:31 +0000)
committerWayne Davison <wayned@samba.org>
Mon, 10 Jan 2005 00:31:55 +0000 (00:31 +0000)
(this message comes from the receiver).  This ensures that any
redo-pass files and delete-after processing are known to be done
prior to the start of our hard-link and dir-time-munging loops.

generator.c

index c3ba30c..ce93b5a 100644 (file)
@@ -685,6 +685,9 @@ void generate_files(int f_out, struct file_list *flist, char *local_name,
 
        write_int(f_out, -1);
 
+       /* Read post-redo-phase MSG_DONE and any prior messages. */
+       get_redo_num();
+
        if (preserve_hard_links)
                do_hard_links();