Skip to content

Commit

Permalink
Don't use --nodelete
Browse files Browse the repository at this point in the history
For some reason lost in ancient times, the slave is started with eitehr
--delete or an explicit --nodelete. The later is not required, because
that is the default.
  • Loading branch information
donald committed Jun 20, 2022
1 parent 9abad42 commit 15d25c4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cmirror.c
Original file line number Diff line number Diff line change
Expand Up @@ -1214,10 +1214,7 @@ static void master(char *master_path, char *target) {
if (fileop_noop) g_ptr_array_add(args, "--noop");
if (fileop_debug) g_ptr_array_add(args, "--fileop_debug");
if (debug) g_ptr_array_add(args, "--debug");
if (delete)
g_ptr_array_add(args, "--delete");
else
g_ptr_array_add(args, "--nodelete");
if (delete) g_ptr_array_add(args, "--delete");
if (mkdir_slave) g_ptr_array_add(args, "--mkdir");
if (reduce) g_ptr_array_add(args, "--reduce");
if (force_status) g_ptr_array_add(args, "--force_status");
Expand Down

0 comments on commit 15d25c4

Please sign in to comment.