aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2016-11-08 12:09:18 -0500
committerRobert Haas <rhaas@postgresql.org>2016-11-08 12:12:19 -0500
commit60379f66c8527a260bb1946f703540728d73932d (patch)
treed04ab4a3fcd0f33a48ec4437da36bcfb81bb132a /src
parentde4026c673f195cfdb7aa7cc87cc60e36963f094 (diff)
downloadpostgresql-60379f66c8527a260bb1946f703540728d73932d.tar.gz
postgresql-60379f66c8527a260bb1946f703540728d73932d.zip
Fix mistake in XLOG_SEG_SIZE test.
The intent of the test is to check whether XLOG_SEG_SIZE is in a particular range, but actually in one case it compares XLOG_BLCKSZ by mistake. Repair. Commit 88e982302684246e8af785e78a467ac37c76dee9 introduced this faulty test. Kuntal Ghosh, reviewed by Michael Paquier.
Diffstat (limited to 'src')
-rw-r--r--src/backend/utils/misc/guc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c
index 65660c1bf7e..3c695c16153 100644
--- a/src/backend/utils/misc/guc.c
+++ b/src/backend/utils/misc/guc.c
@@ -707,7 +707,7 @@ typedef struct
#if XLOG_BLCKSZ < 1024 || XLOG_BLCKSZ > (1024*1024)
#error XLOG_BLCKSZ must be between 1KB and 1MB
#endif
-#if XLOG_SEG_SIZE < (1024*1024) || XLOG_BLCKSZ > (1024*1024*1024)
+#if XLOG_SEG_SIZE < (1024*1024) || XLOG_SEG_SIZE > (1024*1024*1024)
#error XLOG_SEG_SIZE must be between 1MB and 1GB
#endif