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

+1-1
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)