diff options
author | Simon Riggs <simon@2ndQuadrant.com> | 2013-04-30 12:27:12 +0100 |
---|---|---|
committer | Simon Riggs <simon@2ndQuadrant.com> | 2013-04-30 12:27:12 +0100 |
commit | 443951748ce4c94b001877c7cf88b0ee969c79e7 (patch) | |
tree | 6f5af0f79b52f3e9df2b88b5322d573ed0a34f40 /src/backend/bootstrap/bootstrap.c | |
parent | 730924397c8151c3cf34e633211cd0fe4a0db112 (diff) | |
download | postgresql-443951748ce4c94b001877c7cf88b0ee969c79e7.tar.gz postgresql-443951748ce4c94b001877c7cf88b0ee969c79e7.zip |
Record data_checksum_version in control file.
The value is not used anywhere in code, but will
allow future changes to the checksum version
should that become necessary in the future.
Diffstat (limited to 'src/backend/bootstrap/bootstrap.c')
-rw-r--r-- | src/backend/bootstrap/bootstrap.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/backend/bootstrap/bootstrap.c b/src/backend/bootstrap/bootstrap.c index 287f19b6ece..9e401ef7a30 100644 --- a/src/backend/bootstrap/bootstrap.c +++ b/src/backend/bootstrap/bootstrap.c @@ -34,6 +34,7 @@ #include "postmaster/walwriter.h" #include "replication/walreceiver.h" #include "storage/bufmgr.h" +#include "storage/bufpage.h" #include "storage/ipc.h" #include "storage/proc.h" #include "tcop/tcopprot.h" @@ -48,7 +49,7 @@ extern int optind; extern char *optarg; -bool bootstrap_data_checksums = false; +uint32 bootstrap_data_checksum_version = 0; /* No checksum */ #define ALLOC(t, c) ((t *) calloc((unsigned)(c), sizeof(t))) @@ -262,7 +263,7 @@ AuxiliaryProcessMain(int argc, char *argv[]) SetConfigOption("fsync", "false", PGC_POSTMASTER, PGC_S_ARGV); break; case 'k': - bootstrap_data_checksums = true; + bootstrap_data_checksum_version = PG_DATA_CHECKSUM_VERSION; break; case 'r': strlcpy(OutputFileName, optarg, MAXPGPATH); |