From ba4eb01554fa02268823234983200a71b3b77c1b Mon Sep 17 00:00:00 2001 From: Alvaro Herrera Date: Mon, 27 Oct 2008 22:15:05 +0000 Subject: [PATCH] Downgrade can't-happen error reports to elog(). --- src/backend/utils/time/snapmgr.c | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/src/backend/utils/time/snapmgr.c b/src/backend/utils/time/snapmgr.c index 0add5f489c..75a7a0ce5d 100644 --- a/src/backend/utils/time/snapmgr.c +++ b/src/backend/utils/time/snapmgr.c @@ -22,7 +22,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/time/snapmgr.c,v 1.5 2008/09/11 14:01:10 alvherre Exp $ + * $PostgreSQL: pgsql/src/backend/utils/time/snapmgr.c,v 1.6 2008/10/27 22:15:05 alvherre Exp $ * *------------------------------------------------------------------------- */ @@ -616,19 +616,14 @@ AtEOXact_Snapshot(bool isCommit) /* complain about unpopped active snapshots */ for (active = ActiveSnapshot; active != NULL; active = active->as_next) - { - ereport(WARNING, - (errmsg("snapshot %p still active", active))); - } + elog(WARNING, "snapshot %p still active", active); /* complain about any unregistered snapshot */ for (regd = RegisteredSnapshotList; regd != NULL; regd = regd->s_next) - { - ereport(WARNING, - (errmsg("snapshot %p not destroyed at commit (%d regd refs, %d active refs)", - regd->s_snap, regd->s_snap->regd_count, - regd->s_snap->active_count))); - } + elog(WARNING, + "snapshot %p not destroyed at commit (%d regd refs, %d active refs)", + regd->s_snap, regd->s_snap->regd_count, + regd->s_snap->active_count); } /* -- 2.40.0