Fix incremental-sync review: sendfile_no_path, reject -s+incremental, no data mutation, auto -M, STATUS_ERROR handling, PROTOCOL_VERSION bump

This commit is contained in:
2026-07-16 17:02:16 +02:00
parent 1905369c9f
commit f1af88a25c
5 changed files with 78 additions and 19 deletions
+10
View File
@@ -205,6 +205,16 @@ int main(int argc, char *argv[]) {
return 1;
}
if (config->use_incremental && config->use_chunk_serialization) {
fprintf(stderr, "Error: --incremental is not supported with -s (chunk serialization)\n");
return 1;
}
if (config->use_incremental && !config->use_metadata) {
log_message(LOG_LEVEL_INFO, "Enabling metadata preservation for --incremental");
config->use_metadata = true;
}
if (config->use_multithreading)
return send_files_multithreaded(config);
return send_files(config);