diff options
Diffstat (limited to 'src/backend/storage/lmgr/lwlock.c')
| -rw-r--r-- | src/backend/storage/lmgr/lwlock.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/backend/storage/lmgr/lwlock.c b/src/backend/storage/lmgr/lwlock.c index f75ccc869f..8b7e6f9451 100644 --- a/src/backend/storage/lmgr/lwlock.c +++ b/src/backend/storage/lmgr/lwlock.c @@ -15,7 +15,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/storage/lmgr/lwlock.c,v 1.27 2005/04/08 14:18:35 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/storage/lmgr/lwlock.c,v 1.28 2005/04/28 21:47:15 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -114,6 +114,12 @@ NumLWLocks(void) /* subtrans.c needs one per SubTrans buffer */ numLocks += NUM_SLRU_BUFFERS; + /* + * multixact.c needs one per MultiXact buffer, but there are + * two SLRU areas for MultiXact + */ + numLocks += 2 * NUM_SLRU_BUFFERS; + /* Perhaps create a few more for use by user-defined modules? */ return numLocks; |
