aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/xlog.c
diff options
context:
space:
mode:
authorSimon Riggs <simon@2ndQuadrant.com>2013-04-30 12:27:12 +0100
committerSimon Riggs <simon@2ndQuadrant.com>2013-04-30 12:27:12 +0100
commit443951748ce4c94b001877c7cf88b0ee969c79e7 (patch)
tree6f5af0f79b52f3e9df2b88b5322d573ed0a34f40 /src/backend/access/transam/xlog.c
parent730924397c8151c3cf34e633211cd0fe4a0db112 (diff)
downloadpostgresql-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/access/transam/xlog.c')
-rw-r--r--src/backend/access/transam/xlog.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c
index 5452ae139a2..959f4231873 100644
--- a/src/backend/access/transam/xlog.c
+++ b/src/backend/access/transam/xlog.c
@@ -60,7 +60,7 @@
#include "utils/timestamp.h"
#include "pg_trace.h"
-extern bool bootstrap_data_checksums;
+extern uint32 bootstrap_data_checksum_version;
/* File path names (all relative to $PGDATA) */
#define RECOVERY_COMMAND_FILE "recovery.conf"
@@ -3797,7 +3797,7 @@ bool
DataChecksumsEnabled(void)
{
Assert(ControlFile != NULL);
- return ControlFile->data_checksums;
+ return (ControlFile->data_checksum_version > 0);
}
/*
@@ -4126,7 +4126,7 @@ BootStrapXLOG(void)
ControlFile->max_prepared_xacts = max_prepared_xacts;
ControlFile->max_locks_per_xact = max_locks_per_xact;
ControlFile->wal_level = wal_level;
- ControlFile->data_checksums = bootstrap_data_checksums;
+ ControlFile->data_checksum_version = bootstrap_data_checksum_version;
/* some additional ControlFile fields are set in WriteControlFile() */