*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/storage/buffer/bufmgr.c,v 1.12 1997/04/18 02:53:23 vadim Exp $
+ * $Header: /cvsroot/pgsql/src/backend/storage/buffer/bufmgr.c,v 1.13 1997/04/18 08:30:08 vadim Exp $
*
*-------------------------------------------------------------------------
*/
bufHdr->flags |= (BM_DIRTY | BM_JUST_DIRTIED);
UnpinBuffer(bufHdr);
SpinRelease(BufMgrLock);
+ CommitInfoNeedsSave[buffer - 1] = 0;
}
return(TRUE);
}
if ( release )
UnpinBuffer(bufHdr);
SpinRelease(BufMgrLock);
+ CommitInfoNeedsSave[buffer - 1] = 0;
return(STATUS_OK);
}
SpinAcquire(BufMgrLock);
bufHdr->flags |= (BM_DIRTY | BM_JUST_DIRTIED);
SpinRelease(BufMgrLock);
+ CommitInfoNeedsSave[buffer - 1] = 0;
}
return(STATUS_OK);
}
void SetBufferCommitInfoNeedsSave(Buffer buffer)
{
- CommitInfoNeedsSave[buffer - 1]++;
+ if ( !BufferIsLocal(buffer) )
+ CommitInfoNeedsSave[buffer - 1]++;
}