diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2001-07-06 21:04:26 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2001-07-06 21:04:26 +0000 |
commit | 55432fedd2b3383c0cd0724a70ad0ae5134710f3 (patch) | |
tree | d6aa387a59107c56fd2d4fdfa6c7b12320bd0d70 /src/backend/storage/buffer/buf_init.c | |
parent | 1e9e5defc256708ca40009640d337baeca5698ec (diff) | |
download | postgresql-55432fedd2b3383c0cd0724a70ad0ae5134710f3.tar.gz postgresql-55432fedd2b3383c0cd0724a70ad0ae5134710f3.zip |
Implement LockBufferForCleanup(), which will allow concurrent VACUUM
to wait until it's safe to remove tuples and compact free space in a
shared buffer page. Miscellaneous small code cleanups in bufmgr, too.
Diffstat (limited to 'src/backend/storage/buffer/buf_init.c')
-rw-r--r-- | src/backend/storage/buffer/buf_init.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/backend/storage/buffer/buf_init.c b/src/backend/storage/buffer/buf_init.c index 03d6504db86..819fe7e206c 100644 --- a/src/backend/storage/buffer/buf_init.c +++ b/src/backend/storage/buffer/buf_init.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/storage/buffer/buf_init.c,v 1.42 2001/03/22 03:59:44 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/storage/buffer/buf_init.c,v 1.43 2001/07/06 21:04:25 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -63,7 +63,6 @@ long *PrivateRefCount; /* also used in freelist.c */ bits8 *BufferLocks; /* flag bits showing locks I have set */ BufferTag *BufferTagLastDirtied; /* tag buffer had when last * dirtied by me */ -BufferBlindId *BufferBlindLastDirtied; bool *BufferDirtiedByMe; /* T if buf has been dirtied in cur xact */ @@ -237,7 +236,6 @@ InitBufferPoolAccess(void) PrivateRefCount = (long *) calloc(NBuffers, sizeof(long)); BufferLocks = (bits8 *) calloc(NBuffers, sizeof(bits8)); BufferTagLastDirtied = (BufferTag *) calloc(NBuffers, sizeof(BufferTag)); - BufferBlindLastDirtied = (BufferBlindId *) calloc(NBuffers, sizeof(BufferBlindId)); BufferDirtiedByMe = (bool *) calloc(NBuffers, sizeof(bool)); /* |