Fix --dry-run mode of pg_rewind
authorMichael Paquier <michael@paquier.xyz>
Fri, 4 Oct 2019 00:16:03 +0000 (09:16 +0900)
committerMichael Paquier <michael@paquier.xyz>
Fri, 4 Oct 2019 00:16:03 +0000 (09:16 +0900)
commitc2e3b311d9ef85e99b04944e7e6f98e3a336de84
treecd94548f5bcfea5e9e7f5b5244447247ec825e61
parent8381242df587d31c178938d9b125131e2f8064b3
Fix --dry-run mode of pg_rewind

Even if --dry-run mode was specified, the control file was getting
updated, preventing follow-up runs of pg_rewind to work properly on the
target data folder.  The origin of the problem came from the refactoring
done by ce6afc6.

Author: Alexey Kondratov
Discussion: http://postgr.es/m/7ca88204-3e0b-2f4c-c8af-acadc4b266e5@postgrespro.ru
Backpatch-through: 12
src/bin/pg_rewind/pg_rewind.c