diff options
author | Michael Paquier | 2012-07-23 05:32:51 +0000 |
---|---|---|
committer | Michael Paquier | 2012-07-23 05:32:51 +0000 |
commit | baa8c4a51cdd7de321169f12ebfb47b02fed3afc (patch) | |
tree | 4dca711593b46ea586cabcaf970e0285ab0af44b /src | |
parent | 60262c8b95f692bfd8409a7818ab5699e81e6765 (diff) |
Enforce set of current command Id on remote nodes on snapshot obtention
This avoids to try to lock invisible tuple because of incorrect command Id
on remote nodes. Prior to this commit, this enforcement was done only on
Datanodes but it needs to be globally done in terms of remote nodes.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/utils/time/snapmgr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/utils/time/snapmgr.c b/src/backend/utils/time/snapmgr.c index 9d31e741b7..d26f894696 100644 --- a/src/backend/utils/time/snapmgr.c +++ b/src/backend/utils/time/snapmgr.c @@ -176,7 +176,7 @@ GetTransactionSnapshot(void) * The command id should therefore be updated in the * current snapshot. */ - if (IS_PGXC_DATANODE) + if (IsConnFromCoord()) SnapshotSetCommandId(GetCurrentCommandId(false)); #endif return CurrentSnapshot; |