Skip to content

Commit 60379f6

Browse files
committed
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 88e9823 introduced this faulty test. Kuntal Ghosh, reviewed by Michael Paquier.
1 parent de4026c commit 60379f6

File tree

1 file changed

+1
-1
lines changed
  • src/backend/utils/misc

1 file changed

+1
-1
lines changed

src/backend/utils/misc/guc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ typedef struct
707707
#if XLOG_BLCKSZ < 1024 || XLOG_BLCKSZ > (1024*1024)
708708
#error XLOG_BLCKSZ must be between 1KB and 1MB
709709
#endif
710-
#if XLOG_SEG_SIZE < (1024*1024) || XLOG_BLCKSZ > (1024*1024*1024)
710+
#if XLOG_SEG_SIZE < (1024*1024) || XLOG_SEG_SIZE > (1024*1024*1024)
711711
#error XLOG_SEG_SIZE must be between 1MB and 1GB
712712
#endif
713713

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy