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

Commiteef15f5

Browse files
committed
Rename BindingTab to BindingTable.
1 parenta8376c1 commiteef15f5

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

‎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.11 1998/06/23 17:59:54 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipci.c,v 1.12 1998/06/25 14:24:34 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -83,7 +83,7 @@ CreateSharedMemoryAndSemaphores(IPCKey key)
8383
IPCKeyGetBufferMemoryKey(key),size);
8484
}
8585
ShmemCreate(IPCKeyGetBufferMemoryKey(key),size);
86-
ShmemBindingTabReset();
86+
ShmemBindingTableReset();
8787
InitShmem(key,size);
8888
InitBufferPool(key);
8989

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

Lines changed: 9 additions & 9 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/shmem.c,v 1.21 1998/06/23 16:04:46 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/shmem.c,v 1.22 1998/06/25 14:24:34 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -81,21 +81,21 @@ SPINLOCKBindingLock;/* lock for binding table access */
8181
staticunsigned long*ShmemFreeStart=NULL;/* pointer to the OFFSET
8282
* of first free shared
8383
* memory */
84-
staticunsigned long*ShmemBindingTabOffset=NULL;/* start of the binding
84+
staticunsigned long*ShmemBindingTableOffset=NULL;/* start of the binding
8585
* table (for bootstrap) */
8686
staticintShmemBootstrap= FALSE;/* flag becomes true when shared
8787
* mem is created by POSTMASTER */
8888

8989
staticHTAB*BindingTable=NULL;
9090

9191
/* ---------------------
92-
*ShmemBindingTabReset() - Resets the binding table to NULL....
92+
*ShmemBindingTableReset() - Resets the binding table to NULL....
9393
* useful when the postmaster destroys existing shared memory
9494
* and creates all new segments after a backend crash.
9595
* ----------------------
9696
*/
9797
void
98-
ShmemBindingTabReset(void)
98+
ShmemBindingTableReset(void)
9999
{
100100
BindingTable= (HTAB*)NULL;
101101
}
@@ -179,10 +179,10 @@ InitShmem(unsigned int key, unsigned int size)
179179
/* First long in shared memory is the count of available space */
180180
ShmemFreeStart= (unsigned long*)ShmemBase;
181181
/* next is a shmem pointer to the binding table */
182-
ShmemBindingTabOffset=ShmemFreeStart+1;
182+
ShmemBindingTableOffset=ShmemFreeStart+1;
183183

184184
currFreeSpace+=
185-
sizeof(ShmemFreeStart)+sizeof(ShmemBindingTabOffset);
185+
sizeof(ShmemFreeStart)+sizeof(ShmemBindingTableOffset);
186186

187187
/*
188188
* bootstrap initialize spin locks so we can start to use the
@@ -245,7 +245,7 @@ InitShmem(unsigned int key, unsigned int size)
245245

246246
Assert(ShmemBootstrap);
247247
result->location=MAKE_OFFSET(BindingTable->hctl);
248-
*ShmemBindingTabOffset=result->location;
248+
*ShmemBindingTableOffset=result->location;
249249
result->size=BTABLE_SIZE;
250250

251251
ShmemBootstrap= FALSE;
@@ -514,10 +514,10 @@ ShmemInitStruct(char *name, unsigned long size, bool *foundPtr)
514514
}
515515
else
516516
{
517-
Assert(ShmemBindingTabOffset);
517+
Assert(ShmemBindingTableOffset);
518518

519519
*foundPtr= TRUE;
520-
return ((long*)MAKE_PTR(*ShmemBindingTabOffset));
520+
return ((long*)MAKE_PTR(*ShmemBindingTableOffset));
521521
}
522522

523523

‎src/include/storage/shmem.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: shmem.h,v 1.11 1998/02/26 04:43:34 momjian Exp $
9+
* $Id: shmem.h,v 1.12 1998/06/25 14:24:35 momjian Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -59,7 +59,7 @@ typedef struct SHM_QUEUE
5959
}SHM_QUEUE;
6060

6161
/* shmem.c */
62-
externvoidShmemBindingTabReset(void);
62+
externvoidShmemBindingTableReset(void);
6363
externvoidShmemCreate(unsignedintkey,unsignedintsize);
6464
externintInitShmem(unsignedintkey,unsignedintsize);
6565
externlong*ShmemAlloc(unsigned longsize);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp