Commit 47a338c
committed
Fix SxactGlobalXmin tracking.
Commit bb16aba broke the code that maintains SxactGlobalXmin. It
could get stuck when a well-timed READ ONLY transaction runs. If
SxactGlobalXmin stops advancing, transactions on the
FinishedSerializableTransactions queue are never cleaned up, so
resources are effectively leaked. Revert that hunk of the commit.
Also revert another similar hunk that was probably harmless, but
unnecessary and unjustified, relating to the DOOMED flag in case of
RO_SAFE early release.
Author: Thomas Munro
Reported-by: Tom Lane
Discussion: https://postgr.es/m/16170.1557251214%40sss.pgh.pa.us1 parent cd805f4 commit 47a338c
1 file changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3438 | 3438 | | |
3439 | 3439 | | |
3440 | 3440 | | |
3441 | | - | |
3442 | | - | |
| 3441 | + | |
3443 | 3442 | | |
3444 | 3443 | | |
3445 | 3444 | | |
| |||
3635 | 3634 | | |
3636 | 3635 | | |
3637 | 3636 | | |
3638 | | - | |
3639 | | - | |
| 3637 | + | |
3640 | 3638 | | |
3641 | 3639 | | |
3642 | 3640 | | |
| |||
0 commit comments