Permalink
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
zero.
  • Loading branch information...
1 parent 031f9ae commit e04ba8bea5f9617bb1d4a26c04b4fa8ce83d3748 @Jaime2ndQuadrant Jaime2ndQuadrant committed Feb 11, 2015
Showing with 1 addition and 1 deletion.
  1. +1 −1 repmgr.c
View
@@ -1488,7 +1488,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 e04ba8b

Please sign in to comment.