mirror of
https://github.com/postgres/postgres.git
synced 2025-06-30 21:42:05 +03:00
WAL
This commit is contained in:
@ -16,10 +16,17 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/localbuf.c,v 1.32 2000/10/23 04:10:06 vadim Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/localbuf.c,v 1.33 2000/10/28 16:20:56 vadim Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifdef XLOG
|
||||
|
||||
#include "xlog_localbuf.c"
|
||||
|
||||
#else
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/file.h>
|
||||
#include <math.h>
|
||||
@ -247,10 +254,11 @@ InitLocalBuffer(void)
|
||||
}
|
||||
|
||||
/*
|
||||
* LocalBufferSync -
|
||||
* flush all dirty buffers in the local buffer cache. Since the buffer
|
||||
* cache is only used for keeping relations visible during a transaction,
|
||||
* we will not need these buffers again.
|
||||
* LocalBufferSync
|
||||
*
|
||||
* Flush all dirty buffers in the local buffer cache at commit time.
|
||||
* Since the buffer cache is only used for keeping relations visible
|
||||
* during a transaction, we will not need these buffers again.
|
||||
*/
|
||||
void
|
||||
LocalBufferSync(void)
|
||||
@ -303,3 +311,5 @@ ResetLocalBufferPool(void)
|
||||
MemSet(LocalRefCount, 0, sizeof(long) * NLocBuffer);
|
||||
nextFreeLocalBuf = 0;
|
||||
}
|
||||
|
||||
#endif /* XLOG */
|
||||
|
Reference in New Issue
Block a user