]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Remove shadow variables linked to RedoRecPtr in xlog.c
authorMichael Paquier <michael@paquier.xyz>
Wed, 18 Dec 2019 01:11:36 +0000 (10:11 +0900)
committerMichael Paquier <michael@paquier.xyz>
Wed, 18 Dec 2019 01:11:36 +0000 (10:11 +0900)
commit668365014d7b330fa828826ff94653d446971a86
tree7143b51298d8b7b8084016e97f158a2eddd54437
parentfc449abc3dccc06b01783bcdb2c348c8ef670ccd
Remove shadow variables linked to RedoRecPtr in xlog.c

This changes the routines in charge of recycling WAL segments past the
last redo LSN to not use anymore "RedoRecPtr" as a local variable, which
is also available in the context of the session as a static declaration,
replacing it with "lastredoptr".  This confusion has been introduced by
d9fadbf, so backpatch down to v11 like the other commit.

Thanks to Tom Lane, Robert Haas, Alvaro Herrera, Mark Dilger and Kyotaro
Horiguchi for the input provided.

Author: Ranier Vilela
Discussion: https://postgr.es/m/MN2PR18MB2927F7B5F690065E1194B258E35D0@MN2PR18MB2927.namprd18.prod.outlook.com
Backpatch-through: 11
src/backend/access/transam/xlog.c