diff options
author | Simon Riggs <simon@2ndQuadrant.com> | 2017-04-06 10:30:22 -0400 |
---|---|---|
committer | Simon Riggs <simon@2ndQuadrant.com> | 2017-04-06 10:30:22 -0400 |
commit | cd0cebaf7d1ab04427d4045edf7121a8f3753d8b (patch) | |
tree | c3efa68eb8dc9039aa87c56be5eaac8374f09521 /src/backend/access/transam/xact.c | |
parent | 3217327053638085d24dd4d276e7c1f7ac2c4c6b (diff) |
Always SnapshotResetXmin() during ClearTransaction()
Avoid corner cases during 2PC with 6bad580d9e678a0b604883e14d8401d469b06566
Diffstat (limited to 'src/backend/access/transam/xact.c')
-rw-r--r-- | src/backend/access/transam/xact.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/access/transam/xact.c b/src/backend/access/transam/xact.c index 84409ea9562..92b263aea1c 100644 --- a/src/backend/access/transam/xact.c +++ b/src/backend/access/transam/xact.c @@ -2640,7 +2640,7 @@ CleanupTransaction(void) * do abort cleanup processing */ AtCleanup_Portals(); /* now safe to release portal memory */ - AtEOXact_Snapshot(false, false); /* and release the transaction's snapshots */ + AtEOXact_Snapshot(false, true); /* and release the transaction's snapshots */ CurrentResourceOwner = NULL; /* and resource owner */ if (TopTransactionResourceOwner) |