1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-05 09:19:17 +03:00

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

around the icc bug exhibited by buildfarm member dugong.
This commit is contained in:
Tom Lane 2007-10-04 15:37:44 +00:00
parent 133d77a906
commit b26738b583

View File

@ -37,7 +37,7 @@
* *
* *
* IDENTIFICATION * 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) if (!IsUnderPostmaster)
return false; /* probably shouldn't even get here */ 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); LWLockAcquire(BgWriterCommLock, LW_EXCLUSIVE);