Skip to content

Commit ba4eb01

Browse files
committed
Downgrade can't-happen error reports to elog().
1 parent c9d1efd commit ba4eb01

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

src/backend/utils/time/snapmgr.c

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* Portions Copyright (c) 1994, Regents of the University of California
2323
*
2424
* IDENTIFICATION
25-
* $PostgreSQL: pgsql/src/backend/utils/time/snapmgr.c,v 1.5 2008/09/11 14:01:10 alvherre Exp $
25+
* $PostgreSQL: pgsql/src/backend/utils/time/snapmgr.c,v 1.6 2008/10/27 22:15:05 alvherre Exp $
2626
*
2727
*-------------------------------------------------------------------------
2828
*/
@@ -616,19 +616,14 @@ AtEOXact_Snapshot(bool isCommit)
616616

617617
/* complain about unpopped active snapshots */
618618
for (active = ActiveSnapshot; active != NULL; active = active->as_next)
619-
{
620-
ereport(WARNING,
621-
(errmsg("snapshot %p still active", active)));
622-
}
619+
elog(WARNING, "snapshot %p still active", active);
623620

624621
/* complain about any unregistered snapshot */
625622
for (regd = RegisteredSnapshotList; regd != NULL; regd = regd->s_next)
626-
{
627-
ereport(WARNING,
628-
(errmsg("snapshot %p not destroyed at commit (%d regd refs, %d active refs)",
629-
regd->s_snap, regd->s_snap->regd_count,
630-
regd->s_snap->active_count)));
631-
}
623+
elog(WARNING,
624+
"snapshot %p not destroyed at commit (%d regd refs, %d active refs)",
625+
regd->s_snap, regd->s_snap->regd_count,
626+
regd->s_snap->active_count);
632627
}
633628

634629
/*

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy