Call increment_active_files() during the first phase of a transfer
authorWayne Davison <wayned@samba.org>
Wed, 15 Feb 2006 08:06:45 +0000 (08:06 +0000)
committerWayne Davison <wayned@samba.org>
Wed, 15 Feb 2006 08:06:45 +0000 (08:06 +0000)
where --remove-sent-files was specified.

generator.c

index cccd1ec..3a30efd 100644 (file)
@@ -1231,6 +1231,8 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx,
                rprintf(FINFO, "generating and sending sums for %d\n", ndx);
 
   notify_others:
+       if (remove_sent_files && !phase)
+           increment_active_files(ndx, itemizing, code);
        write_int(f_out, ndx);
        if (itemizing) {
                int iflags = ITEM_TRANSFER;