summaryrefslogtreecommitdiff
path: root/src/makefiles
diff options
context:
space:
mode:
authorAlvaro Herrera2018-01-05 15:17:10 +0000
committerAlvaro Herrera2018-01-05 15:17:10 +0000
commitf68c49f86aea271a083f26147a8648ac74ed2e76 (patch)
treeb1f70a9f60121363ab201d90f47b84583eb40848 /src/makefiles
parent2d03daa7b8b1b8061afa80bdec85da5d761e1023 (diff)
Fix failure to delete spill files of aborted transactions
Logical decoding's reorderbuffer.c may spill transaction files to disk when transactions are large. These are supposed to be removed when they become "too old" by xid; but file removal requires the boundary LSNs of the transaction to be known. The final_lsn is only set when we see the commit or abort record for the transaction, but nothing sets the value for transactions that crash, so the removal code misbehaves -- in assertion-enabled builds, it crashes by a failed assertion. To fix, modify the final_lsn of transactions that don't have a value set, to the LSN of the very latest change in the transaction. This causes the spilled files to be removed appropriately. Author: Atsushi Torikoshi Reviewed-by: Kyotaro HORIGUCHI, Craig Ringer, Masahiko Sawada Discussion: https://postgr.es/m/54e4e488-186b-a056-6628-50628e4e4ebc@lab.ntt.co.jp
Diffstat (limited to 'src/makefiles')
0 files changed, 0 insertions, 0 deletions