diff options
author | Vadim B. Mikheev <vadim4o@yahoo.com> | 2000-10-28 16:21:00 +0000 |
---|---|---|
committer | Vadim B. Mikheev <vadim4o@yahoo.com> | 2000-10-28 16:21:00 +0000 |
commit | 5b0740d3fcd55f6e545e8bd577fe8ccba2be4987 (patch) | |
tree | 06cf3807f89c23d365322e08f594e6bbaaa95a3c /src/backend/storage/buffer/localbuf.c | |
parent | 2f4c9d39febec0c092388b124bf3de2d857eb5a9 (diff) | |
download | postgresql-5b0740d3fcd55f6e545e8bd577fe8ccba2be4987.tar.gz postgresql-5b0740d3fcd55f6e545e8bd577fe8ccba2be4987.zip |
WAL
Diffstat (limited to 'src/backend/storage/buffer/localbuf.c')
-rw-r--r-- | src/backend/storage/buffer/localbuf.c | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/src/backend/storage/buffer/localbuf.c b/src/backend/storage/buffer/localbuf.c index 1d6a416e48e..faa3304b4f6 100644 --- a/src/backend/storage/buffer/localbuf.c +++ b/src/backend/storage/buffer/localbuf.c @@ -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 */ |