1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-16 10:20:02 +02:00
pgbackrest/test/lib/pgBackRestTest
David Steele 4ab8943ca8 Use PG_PAGE_SIZE_DEFAULT constant instead of pageSize variable.
Page size is passed around a lot but in fact it can only have one value, PG_PAGE_SIZE_DEFAULT, which is checked when pg_control is loaded. There may be an argument for supporting multiple page sizes in the future but for now just use the constant to simplify the code.

There is also a significant performance benefit.  Because pageSize was being used in pageChecksumBlock() the main loop was neither unrolled nor vectorized (-funroll-loops -ftree-vectorize) as it is now with a constant loop boundary.
2020-03-05 09:14:27 -05:00
..
Common Prevent defunct processes in asynchronous archive commands. 2020-02-12 12:17:23 -07:00
Env Fix flapping test in real/all module. 2020-02-28 14:50:50 -05:00
Module Use PG_PAGE_SIZE_DEFAULT constant instead of pageSize variable. 2020-03-05 09:14:27 -05:00