Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit b26738b

Browse files
committed
Change Assert() to a plain test and elog, just to see if that works
around the icc bug exhibited by buildfarm member dugong.
1 parent 133d77a commit b26738b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/backend/postmaster/bgwriter.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
*
3838
*
3939
* IDENTIFICATION
40-
* $PostgreSQL: pgsql/src/backend/postmaster/bgwriter.c,v 1.44 2007/09/25 20:03:37 tgl Exp $
40+
* $PostgreSQL: pgsql/src/backend/postmaster/bgwriter.c,v 1.45 2007/10/04 15:37:44 tgl Exp $
4141
*
4242
*-------------------------------------------------------------------------
4343
*/
@@ -996,7 +996,8 @@ ForwardFsyncRequest(RelFileNode rnode, BlockNumber segno)
996996
if (!IsUnderPostmaster)
997997
return false; /* probably shouldn't even get here */
998998

999-
Assert(!am_bg_writer);
999+
if (am_bg_writer)
1000+
elog(ERROR, "ForwardFsyncRequest must not be called in bgwriter");
10001001

10011002
LWLockAcquire(BgWriterCommLock, LW_EXCLUSIVE);
10021003

0 commit comments

Comments
 (0)