From 77df055c54f109fab16c9c78fdd007bf313b8e47 Mon Sep 17 00:00:00 2001 From: Hiroshi Inoue Date: Fri, 29 Sep 2000 01:23:47 +0000 Subject: [PATCH] avoid database-wide restart on write error --- src/backend/storage/buffer/bufmgr.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/backend/storage/buffer/bufmgr.c b/src/backend/storage/buffer/bufmgr.c index 6711500e15..2324089e76 100644 --- a/src/backend/storage/buffer/bufmgr.c +++ b/src/backend/storage/buffer/bufmgr.c @@ -8,7 +8,7 @@ * * * 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) else { 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, "!!! now kill all backends and reset postmaster !!!"); - proc_exit(255); + elog(NOTICE, "write error may be permanent: cannot write block %u for %s/%s", + buf->tag.blockNum, buf->blind.dbname, buf->blind.relname); } buf->flags |= BM_DIRTY; }