Fix assert bug(was my fault)

This commit is contained in:
Hiroshi Inoue 2000-02-17 05:00:38 +00:00
parent 598ea2c359
commit 3ca3bb7d8b
1 changed files with 2 additions and 3 deletions

View File

@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/bufmgr.c,v 1.72 2000/01/26 05:56:50 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/bufmgr.c,v 1.73 2000/02/17 05:00:38 inoue Exp $
*
*-------------------------------------------------------------------------
*/
@ -2269,8 +2269,7 @@ extern void AbortBufferIO(void)
}
else
{
Assert(!(buf->flags & BM_DIRTY));
/* Assert(!(buf->flags & BM_IO_ERROR)); */
Assert((buf->flags & BM_DIRTY) != 0);
if (buf->flags & BM_IO_ERROR)
{
elog(NOTICE, "!!! write error seems permanent !!!");