aboutsummaryrefslogtreecommitdiff
path: root/src/backend/replication/basebackup.c
diff options
context:
space:
mode:
authorMagnus Hagander <magnus@hagander.net>2018-04-09 19:02:42 +0200
committerMagnus Hagander <magnus@hagander.net>2018-04-09 19:03:42 +0200
commita228cc13aeabff308d6dfc98a1015865f5393fce (patch)
tree4704837fb075ccf7c8e5ecc10f341e527ed0e16d /src/backend/replication/basebackup.c
parent03c11796a95cc20a4559a103019d4d22a116a13c (diff)
downloadpostgresql-a228cc13aeabff308d6dfc98a1015865f5393fce.tar.gz
postgresql-a228cc13aeabff308d6dfc98a1015865f5393fce.zip
Revert "Allow on-line enabling and disabling of data checksums"
This reverts the backend sides of commit 1fde38beaa0c3e66c340efc7cc0dc272d6254bb0. I have, at least for now, left the pg_verify_checksums tool in place, as this tool can be very valuable without the rest of the patch as well, and since it's a read-only tool that only runs when the cluster is down it should be a lot safer.
Diffstat (limited to 'src/backend/replication/basebackup.c')
-rw-r--r--src/backend/replication/basebackup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/replication/basebackup.c b/src/backend/replication/basebackup.c
index babf85a6eaf..bfbd1fd3821 100644
--- a/src/backend/replication/basebackup.c
+++ b/src/backend/replication/basebackup.c
@@ -1384,7 +1384,7 @@ sendFile(const char *readfilename, const char *tarfilename, struct stat *statbuf
_tarWriteHeader(tarfilename, NULL, statbuf, false);
- if (!noverify_checksums && DataChecksumsNeedVerify())
+ if (!noverify_checksums && DataChecksumsEnabled())
{
char *filename;