SetBufferWriteMode () added; FlushLocalBuffer () fixed (shouldn't
release buffer if called from WriteNoReleaseBuffer ())
This commit is contained in:
parent
9e41af2e74
commit
5abfe1484a
@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: buf_internals.h,v 1.7 1996/12/04 03:06:27 bryanh Exp $
|
||||
* $Id: buf_internals.h,v 1.8 1997/01/16 07:53:26 vadim Exp $
|
||||
*
|
||||
* NOTE
|
||||
* If BUFFERPAGE0 is defined, then 0 will be used as a
|
||||
@ -200,7 +200,7 @@ extern int NLocBuffer;
|
||||
extern BufferDesc *LocalBufferAlloc(Relation reln, BlockNumber blockNum,
|
||||
bool *foundPtr);
|
||||
extern int WriteLocalBuffer(Buffer buffer, bool release);
|
||||
extern int FlushLocalBuffer(Buffer buffer);
|
||||
extern int FlushLocalBuffer(Buffer buffer, bool release);
|
||||
extern void InitLocalBuffer(void);
|
||||
extern void LocalBufferSync(void);
|
||||
extern void ResetLocalBufferPool(void);
|
||||
|
@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: bufmgr.h,v 1.8 1997/01/14 05:36:15 vadim Exp $
|
||||
* $Id: bufmgr.h,v 1.9 1997/01/16 07:53:27 vadim Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -62,6 +62,12 @@ typedef bits16 BufferLock;
|
||||
|
||||
extern int ShowPinTrace;
|
||||
|
||||
/*
|
||||
* BufferWriteModes (settable via SetBufferWriteMode)
|
||||
*/
|
||||
#define BUFFER_FLUSH_WRITE 0 /* immediate write */
|
||||
#define BUFFER_LATE_WRITE 1 /* delayed write: mark as DIRTY */
|
||||
|
||||
/*
|
||||
* prototypes for functions in bufmgr.c
|
||||
*/
|
||||
@ -107,6 +113,7 @@ extern int ReleaseAndReadBuffer_Debug(char *file,
|
||||
BlockNumber blockNum);
|
||||
extern void BufferRefCountReset(int *refcountsave);
|
||||
extern void BufferRefCountRestore(int *refcountsave);
|
||||
extern int SetBufferWriteMode (int mode);
|
||||
|
||||
#endif /* !defined(BufMgrIncluded) */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user