mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-27 08:39:28 +08:00
Downgrade can't-happen error reports to elog().
This commit is contained in:
parent
c9d1efda96
commit
ba4eb01554
@ -22,7 +22,7 @@
|
|||||||
* Portions Copyright (c) 1994, Regents of the University of California
|
* Portions Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* 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 */
|
/* complain about unpopped active snapshots */
|
||||||
for (active = ActiveSnapshot; active != NULL; active = active->as_next)
|
for (active = ActiveSnapshot; active != NULL; active = active->as_next)
|
||||||
{
|
elog(WARNING, "snapshot %p still active", active);
|
||||||
ereport(WARNING,
|
|
||||||
(errmsg("snapshot %p still active", active)));
|
|
||||||
}
|
|
||||||
|
|
||||||
/* complain about any unregistered snapshot */
|
/* complain about any unregistered snapshot */
|
||||||
for (regd = RegisteredSnapshotList; regd != NULL; regd = regd->s_next)
|
for (regd = RegisteredSnapshotList; regd != NULL; regd = regd->s_next)
|
||||||
{
|
elog(WARNING,
|
||||||
ereport(WARNING,
|
"snapshot %p not destroyed at commit (%d regd refs, %d active refs)",
|
||||||
(errmsg("snapshot %p not destroyed at commit (%d regd refs, %d active refs)",
|
|
||||||
regd->s_snap, regd->s_snap->regd_count,
|
regd->s_snap, regd->s_snap->regd_count,
|
||||||
regd->s_snap->active_count)));
|
regd->s_snap->active_count);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user