Commit 77df055c authored by Hiroshi Inoue's avatar Hiroshi Inoue

avoid database-wide restart on write error

parent 49e75453
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/bufmgr.c,v 1.83 2000/09/25 04:11:09 tgl Exp $ * $Header: /cvsroot/pgsql/src/backend/storage/buffer/bufmgr.c,v 1.84 2000/09/29 01:23:47 inoue Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -2529,11 +2529,10 @@ AbortBufferIO(void) ...@@ -2529,11 +2529,10 @@ AbortBufferIO(void)
else else
{ {
Assert((buf->flags & BM_DIRTY) != 0); Assert((buf->flags & BM_DIRTY) != 0);
if (buf->flags & BM_IO_ERROR) if (buf->flags & BM_IO_ERROR != 0)
{ {
elog(NOTICE, "!!! write error seems permanent !!!"); elog(NOTICE, "write error may be permanent: cannot write block %u for %s/%s",
elog(NOTICE, "!!! now kill all backends and reset postmaster !!!"); buf->tag.blockNum, buf->blind.dbname, buf->blind.relname);
proc_exit(255);
} }
buf->flags |= BM_DIRTY; buf->flags |= BM_DIRTY;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment