1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-11 00:12:06 +03:00

Correct assertion and comments about XLogRecordMaxSize.

The largest allocation, of xl_tot_len+8192, is in allocate_recordbuf().

Discussion: https://postgr.es/m/20230812211327.GB2326466@rfd.leadboat.com
This commit is contained in:
Noah Misch
2023-10-01 12:20:55 -07:00
parent 5b7b382464
commit e1f95ec8cf
2 changed files with 7 additions and 6 deletions

View File

@@ -68,8 +68,8 @@ typedef struct XLogRecord
* in length if we ignore any allocation overhead of the XLogReader.
*
* To accommodate some overhead, this value allows for 4M of allocation
* overhead, that should be plenty enough for what
* DecodeXLogRecordRequiredSpace() expects as extra.
* overhead, that should be plenty enough for what the XLogReader
* infrastructure expects as extra.
*/
#define XLogRecordMaxSize (1020 * 1024 * 1024)