diff options
| author | Mason Sharp | 2010-08-23 06:22:28 +0000 |
|---|---|---|
| committer | Pavan Deolasee | 2011-05-19 16:45:15 +0000 |
| commit | 8a19bf5dfd178b57f7715ca3f267972fcd5ffccc (patch) | |
| tree | 578e77e3ca013571d317f74419abf4e1bf477dd5 /src | |
| parent | 9c0eff0f586b5d02822e18ad70bdf2370bddfbe2 (diff) | |
Fix a visibility warning due to not taking into account
transactions that are running globally across all nodes
in the cluster.
Diffstat (limited to 'src')
| -rw-r--r-- | src/backend/storage/ipc/procarray.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/backend/storage/ipc/procarray.c b/src/backend/storage/ipc/procarray.c index ea372f3c0a..2314d50c85 100644 --- a/src/backend/storage/ipc/procarray.c +++ b/src/backend/storage/ipc/procarray.c @@ -625,6 +625,11 @@ GetOldestXmin(bool allDbs, bool ignoreVacuum) TransactionId result; int index; +#ifdef PGXC + if (TransactionIdIsValid(RecentGlobalXmin)) + return RecentGlobalXmin; +#endif + LWLockAcquire(ProcArrayLock, LW_SHARED); /* |
