diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-05-19 21:35:48 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-05-19 21:35:48 +0000 |
commit | ee3b71f6bce929b07636f76d1654832cb6b5a489 (patch) | |
tree | ce95108d3c0e832555b78e96afb173458991b19e /src/backend/storage/buffer/buf_init.c | |
parent | 6910032a56dd3841be137b4bef7c57ef32a60ac8 (diff) | |
download | postgresql-ee3b71f6bce929b07636f76d1654832cb6b5a489.tar.gz postgresql-ee3b71f6bce929b07636f76d1654832cb6b5a489.zip |
Split the shared-memory array of PGPROC pointers out of the sinval
communication structure, and make it its own module with its own lock.
This should reduce contention at least a little, and it definitely makes
the code seem cleaner. Per my recent proposal.
Diffstat (limited to 'src/backend/storage/buffer/buf_init.c')
-rw-r--r-- | src/backend/storage/buffer/buf_init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/storage/buffer/buf_init.c b/src/backend/storage/buffer/buf_init.c index 1b8f0420791..b2537cbc071 100644 --- a/src/backend/storage/buffer/buf_init.c +++ b/src/backend/storage/buffer/buf_init.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/storage/buffer/buf_init.c,v 1.72 2005/03/04 20:21:06 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/storage/buffer/buf_init.c,v 1.73 2005/05/19 21:35:46 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -115,7 +115,7 @@ InitBufferPool(void) buf->flags = 0; buf->usage_count = 0; buf->refcount = 0; - buf->wait_backend_id = 0; + buf->wait_backend_pid = 0; SpinLockInit(&buf->buf_hdr_lock); |