mirror of
https://github.com/postgres/postgres.git
synced 2025-06-26 12:21:12 +03:00
Fix wal_writer_flush_after initializer value.
Commit a73952b795
(new in 16) required default values in guc_table.c
and C variable initializers to match. This one only matched when
XLOG_BLCKSZ == 8kB. Fix by using the same expression in both places
with a new DEFAULT_XXX macro, as done for other GUCs.
Reviewed-by: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/CA+hUKGLNmLV=VrT==5MqnbARgx2ifRSFtdd8ofdfrdSLL3yv5A@mail.gmail.com
This commit is contained in:
@ -2780,7 +2780,7 @@ struct config_int ConfigureNamesInt[] =
|
||||
GUC_UNIT_XBLOCKS
|
||||
},
|
||||
&WalWriterFlushAfter,
|
||||
(1024 * 1024) / XLOG_BLCKSZ, 0, INT_MAX,
|
||||
DEFAULT_WAL_WRITER_FLUSH_AFTER, 0, INT_MAX,
|
||||
NULL, NULL, NULL
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user