File tree Expand file tree Collapse file tree 8 files changed +130
-130
lines changed Expand file tree Collapse file tree 8 files changed +130
-130
lines changed Original file line number Diff line number Diff line change 7
7
*
8
8
*
9
9
* IDENTIFICATION
10
- * $Header: /cvsroot/pgsql/src/backend/storage/buffer/buf_init.c,v 1.17 1998/01/07 21:04:46 momjian Exp $
10
+ * $Header: /cvsroot/pgsql/src/backend/storage/buffer/buf_init.c,v 1.18 1998/06/27 15:47:43 momjian Exp $
11
11
*
12
12
*-------------------------------------------------------------------------
13
13
*/
@@ -277,14 +277,14 @@ BufferShmemSize()
277
277
nbuckets = 1 << (int ) my_log2 ((NBuffers - 1 ) / DEF_FFACTOR + 1 );
278
278
nsegs = 1 << (int ) my_log2 ((nbuckets - 1 ) / DEF_SEGSIZE + 1 );
279
279
280
- /* size of shmem binding table */
281
- size += MAXALIGN (my_log2 (BTABLE_SIZE ) * sizeof (void * )); /* HTAB->dir */
280
+ /* size of shmem index table */
281
+ size += MAXALIGN (my_log2 (SHMEM_INDEX_SIZE ) * sizeof (void * )); /* HTAB->dir */
282
282
size += MAXALIGN (sizeof (HHDR )); /* HTAB->hctl */
283
283
size += MAXALIGN (DEF_SEGSIZE * sizeof (SEGMENT ));
284
284
size += BUCKET_ALLOC_INCR *
285
285
(MAXALIGN (sizeof (BUCKET_INDEX )) +
286
- MAXALIGN (BTABLE_KEYSIZE ) +
287
- MAXALIGN (BTABLE_DATASIZE ));
286
+ MAXALIGN (SHMEM_INDEX_KEYSIZE ) +
287
+ MAXALIGN (SHMEM_INDEX_DATASIZE ));
288
288
289
289
/* size of buffer descriptors */
290
290
size += MAXALIGN ((NBuffers + 1 ) * sizeof (BufferDesc ));
Original file line number Diff line number Diff line change 7
7
*
8
8
*
9
9
* IDENTIFICATION
10
- * $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipci.c,v 1.14 1998/06/27 04:53:35 momjian Exp $
10
+ * $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipci.c,v 1.15 1998/06/27 15:47:44 momjian Exp $
11
11
*
12
12
*-------------------------------------------------------------------------
13
13
*/
@@ -83,7 +83,7 @@ CreateSharedMemoryAndSemaphores(IPCKey key)
83
83
IPCKeyGetBufferMemoryKey (key ), size );
84
84
}
85
85
ShmemCreate (IPCKeyGetBufferMemoryKey (key ), size );
86
- ShmemBindingTableReset ();
86
+ ShmemIndexReset ();
87
87
InitShmem (key , size );
88
88
InitBufferPool (key );
89
89
You can’t perform that action at this time.
0 commit comments