aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2003-12-30 00:03:03 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2003-12-30 00:03:03 +0000
commite8aa10ee47cd63300aa979751a7ea75562a645aa (patch)
tree3ff26990ae2287f4fbfa51fba52b3358f8710f94 /src
parentea43da51386226a3a80572b4608d5fc572c0891f (diff)
downloadpostgresql-e8aa10ee47cd63300aa979751a7ea75562a645aa.tar.gz
postgresql-e8aa10ee47cd63300aa979751a7ea75562a645aa.zip
ShmemInitHash forgot to specify HASH_ALLOC flag bit in its hash_create
call. You'd think this would cause some problems, but because of the way hash_create is coded, the only side-effect was creation of a useless memory context for the hashtable.
Diffstat (limited to 'src')
-rw-r--r--src/backend/storage/ipc/shmem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/storage/ipc/shmem.c b/src/backend/storage/ipc/shmem.c
index e59b61c014f..49af9287131 100644
--- a/src/backend/storage/ipc/shmem.c
+++ b/src/backend/storage/ipc/shmem.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/storage/ipc/shmem.c,v 1.76 2003/12/21 04:30:10 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/storage/ipc/shmem.c,v 1.77 2003/12/30 00:03:03 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -281,7 +281,7 @@ ShmemInitHash(const char *name, /* table string name for shmem index */
*/
infoP->dsize = infoP->max_dsize = hash_select_dirsize(max_size);
infoP->alloc = ShmemAlloc;
- hash_flags |= HASH_SHARED_MEM | HASH_DIRSIZE;
+ hash_flags |= HASH_SHARED_MEM | HASH_ALLOC | HASH_DIRSIZE;
/* look it up in the shmem index */
location = ShmemInitStruct(name,