Replace static buf with a stack-allocated one in ReadControlFile
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 30 Jul 2024 19:05:59 +0000 (22:05 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 30 Jul 2024 19:05:59 +0000 (22:05 +0300)
commitda8a587e2e225be1ccf838a330e342bda6848874
tree686ae57d79f5d48e6603bfd4c28ca0b1d9ee2c9c
parent6151cb7876136ad23748f4f724309166bbfad3e0
Replace static buf with a stack-allocated one in ReadControlFile

It's only used very locally within the function.

Reviewed-by: Robert Haas
Discussion: https://www.postgresql.org/message-id/7f86e06a-98c5-4ce3-8ec9-3885c8de0358@iki.fi
src/backend/access/transam/xlog.c