aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/time/snapmgr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/utils/time/snapmgr.c')
-rw-r--r--src/backend/utils/time/snapmgr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/utils/time/snapmgr.c b/src/backend/utils/time/snapmgr.c
index ef66466baf1..5917b014fdc 100644
--- a/src/backend/utils/time/snapmgr.c
+++ b/src/backend/utils/time/snapmgr.c
@@ -167,9 +167,9 @@ GetTransactionSnapshot(void)
Snapshot
GetLatestSnapshot(void)
{
- /* Should not be first call in transaction */
+ /* If first call in transaction, go ahead and set the xact snapshot */
if (!FirstSnapshotSet)
- elog(ERROR, "no snapshot has been set");
+ return GetTransactionSnapshot();
SecondarySnapshot = GetSnapshotData(&SecondarySnapshotData);