Skip to content
Browse files

Add "--checksum" in rsync when using "--force"

If the user don't put that option in rsync_options using of "--force"
could be unsafe.
While the probability of failures because of this are low they aren't
  • Loading branch information...
1 parent 6390a41 commit e479ef4bd13139de547efa9b45534ced26ae5d96 @Jaime2ndQuadrant Jaime2ndQuadrant committed Feb 10, 2015
Showing with 1 addition and 1 deletion.
  1. +1 −1 repmgr.c
2 repmgr.c
@@ -1641,7 +1641,7 @@ copy_remote_files(char *host, char *remote_user, char *remote_path,
maxlen_snprintf(rsync_flags, "%s", options.rsync_options);
if (runtime_options.force)
- strcat(rsync_flags, " --delete");
+ strcat(rsync_flags, " --delete --checksum");
if (!remote_user[0])

0 comments on commit e479ef4

Please sign in to comment.
Something went wrong with that request. Please try again.