Skip to content

Commit 77df055

Browse files
author
Hiroshi Inoue
committed
avoid database-wide restart on write error
1 parent 49e7545 commit 77df055

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/backend/storage/buffer/bufmgr.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/bufmgr.c,v 1.83 2000/09/25 04:11:09 tgl Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/bufmgr.c,v 1.84 2000/09/29 01:23:47 inoue Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -2529,11 +2529,10 @@ AbortBufferIO(void)
25292529
else
25302530
{
25312531
Assert((buf->flags & BM_DIRTY) != 0);
2532-
if (buf->flags & BM_IO_ERROR)
2532+
if (buf->flags & BM_IO_ERROR != 0)
25332533
{
2534-
elog(NOTICE, "!!! write error seems permanent !!!");
2535-
elog(NOTICE, "!!! now kill all backends and reset postmaster !!!");
2536-
proc_exit(255);
2534+
elog(NOTICE, "write error may be permanent: cannot write block %u for %s/%s",
2535+
buf->tag.blockNum, buf->blind.dbname, buf->blind.relname);
25372536
}
25382537
buf->flags |= BM_DIRTY;
25392538
}

0 commit comments

Comments
 (0)