Get rid of a global variable
Peter Eisentraut <peter@eisentraut.org>
Get rid of a global variable bootstrap_data_checksum_version can just as easily be passed to where it is used via function arguments. Reviewed-by: Andres Freund <andres@anarazel.de> Discussion: https://www.postgresql.org/message-id/flat/e0a62134-83da-4ba4-8cdb-ceb0111c95ce@eisentraut.org
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/transam/xlog.c | modified | +5 −7 |
| src/backend/bootstrap/bootstrap.c | modified | +2 −3 |
| src/include/access/xlog.h | modified | +1 −1 |
Discussion
- consider -Wmissing-variable-declarations 13 messages · 2024-05-09 → 2026-02-21