Skip to content
Snippets Groups Projects
Commit b26738b5 authored by Tom Lane's avatar Tom Lane
Browse files

Change Assert() to a plain test and elog, just to see if that works

around the icc bug exhibited by buildfarm member dugong.
parent 133d77a9
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/postmaster/bgwriter.c,v 1.44 2007/09/25 20:03:37 tgl Exp $
* $PostgreSQL: pgsql/src/backend/postmaster/bgwriter.c,v 1.45 2007/10/04 15:37:44 tgl Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -996,7 +996,8 @@ ForwardFsyncRequest(RelFileNode rnode, BlockNumber segno)
if (!IsUnderPostmaster)
return false; /* probably shouldn't even get here */
Assert(!am_bg_writer);
if (am_bg_writer)
elog(ERROR, "ForwardFsyncRequest must not be called in bgwriter");
LWLockAcquire(BgWriterCommLock, LW_EXCLUSIVE);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment