Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 133d77a commit b26738bCopy full SHA for b26738b
src/backend/postmaster/bgwriter.c
@@ -37,7 +37,7 @@
37
*
38
39
* IDENTIFICATION
40
- * $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 $
41
42
*-------------------------------------------------------------------------
43
*/
@@ -996,7 +996,8 @@ ForwardFsyncRequest(RelFileNode rnode, BlockNumber segno)
996
if (!IsUnderPostmaster)
997
return false; /* probably shouldn't even get here */
998
999
- Assert(!am_bg_writer);
+ if (am_bg_writer)
1000
+ elog(ERROR, "ForwardFsyncRequest must not be called in bgwriter");
1001
1002
LWLockAcquire(BgWriterCommLock, LW_EXCLUSIVE);
1003
0 commit comments