- if (verbose > 2)
- rprintf(FINFO, "send_files(%d, %s)\n", i, fname);
+ if (file->flags & FLAG_FILE_SENT) {
+ if (csum_length == SHORT_SUM_LENGTH) {
+ /* For inplace: redo phase turns off the backup
+ * flag so that we do a regular inplace send. */
+ make_backups = -make_backups;
+ append_mode = -append_mode;
+ csum_length = SUM_LENGTH;
+ }
+ } else {
+ if (csum_length != SHORT_SUM_LENGTH) {
+ make_backups = -make_backups;
+ append_mode = -append_mode;
+ csum_length = SHORT_SUM_LENGTH;
+ }
+ }
+
+ updating_basis_file = inplace && (protocol_version >= 29
+ ? fnamecmp_type == FNAMECMP_FNAME : make_backups <= 0);
+
+ if (!am_server && do_progress)
+ set_current_file_index(file, ndx);
+ stats.num_transferred_files++;
+ stats.total_transferred_size += F_LENGTH(file);