Content-Length: 260272 | pFad | http://github.com/postgrespro/postgres_cluster/commit/60379f66c8527a260bb1946f703540728d73932d

6E Fix mistake in XLOG_SEG_SIZE test. · postgrespro/postgres_cluster@60379f6 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/60379f66c8527a260bb1946f703540728d73932d

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy