Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit54aabaa

Browse files
committed
Rename BindingTable to ShmemIndex.
1 parent7487a82 commit54aabaa

File tree

8 files changed

+130
-130
lines changed

8 files changed

+130
-130
lines changed

‎src/backend/storage/buffer/buf_init.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* 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 $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -277,14 +277,14 @@ BufferShmemSize()
277277
nbuckets=1 << (int)my_log2((NBuffers-1) /DEF_FFACTOR+1);
278278
nsegs=1 << (int)my_log2((nbuckets-1) /DEF_SEGSIZE+1);
279279

280-
/* size of shmembinding table */
281-
size+=MAXALIGN(my_log2(BTABLE_SIZE)*sizeof(void*));/* HTAB->dir */
280+
/* size of shmemindex table */
281+
size+=MAXALIGN(my_log2(SHMEM_INDEX_SIZE)*sizeof(void*));/* HTAB->dir */
282282
size+=MAXALIGN(sizeof(HHDR));/* HTAB->hctl */
283283
size+=MAXALIGN(DEF_SEGSIZE*sizeof(SEGMENT));
284284
size+=BUCKET_ALLOC_INCR*
285285
(MAXALIGN(sizeof(BUCKET_INDEX))+
286-
MAXALIGN(BTABLE_KEYSIZE)+
287-
MAXALIGN(BTABLE_DATASIZE));
286+
MAXALIGN(SHMEM_INDEX_KEYSIZE)+
287+
MAXALIGN(SHMEM_INDEX_DATASIZE));
288288

289289
/* size of buffer descriptors */
290290
size+=MAXALIGN((NBuffers+1)*sizeof(BufferDesc));

‎src/backend/storage/ipc/ipci.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipci.c,v 1.14 1998/06/2704:53:35 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipci.c,v 1.15 1998/06/2715:47:44 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -83,7 +83,7 @@ CreateSharedMemoryAndSemaphores(IPCKey key)
8383
IPCKeyGetBufferMemoryKey(key),size);
8484
}
8585
ShmemCreate(IPCKeyGetBufferMemoryKey(key),size);
86-
ShmemBindingTableReset();
86+
ShmemIndexReset();
8787
InitShmem(key,size);
8888
InitBufferPool(key);
8989

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp