diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2006-07-22 23:04:39 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2006-07-22 23:04:39 +0000 |
commit | 51ee9fa1574e1826dde4012ecb07455d73fb1444 (patch) | |
tree | 7925f3865d2fbb6b0121979da268e1b2472f9641 /src/backend/storage/lmgr/lock.c | |
parent | c0e9b3139fe24b9bcfcd660fd106ddf2e2d50703 (diff) | |
download | postgresql-51ee9fa1574e1826dde4012ecb07455d73fb1444.tar.gz postgresql-51ee9fa1574e1826dde4012ecb07455d73fb1444.zip |
Add support to dynahash.c for partitioning shared hashtables according
to the low-order bits of the entry hash value. Also make some incidental
cleanups in the dynahash API, such as not exporting the hash header
structs to the world.
Diffstat (limited to 'src/backend/storage/lmgr/lock.c')
-rw-r--r-- | src/backend/storage/lmgr/lock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/storage/lmgr/lock.c b/src/backend/storage/lmgr/lock.c index 472b3d1f4b3..cf78869a0b2 100644 --- a/src/backend/storage/lmgr/lock.c +++ b/src/backend/storage/lmgr/lock.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/storage/lmgr/lock.c,v 1.166 2006/07/14 14:52:23 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/storage/lmgr/lock.c,v 1.167 2006/07/22 23:04:39 tgl Exp $ * * NOTES * A lock table is a shared memory hash table. When @@ -1958,7 +1958,7 @@ GetLockStatusData(void) { LWLockAcquire(FirstLockMgrLock + i, LW_SHARED); proclockTable = LockMethodProcLockHash[i]; - els += proclockTable->hctl->nentries; + els += hash_get_num_entries(proclockTable); } data->nelements = els; |