Skip to content

Commit eef15f5

Browse files
committed
Rename BindingTab to BindingTable.
1 parent a8376c1 commit eef15f5

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 @@ SPINLOCK BindingLock; /* lock for binding table access */
8181
static unsigned long *ShmemFreeStart = NULL; /* pointer to the OFFSET
8282
* of first free shared
8383
* memory */
84-
static unsigned long *ShmemBindingTabOffset = NULL; /* start of the binding
84+
static unsigned long *ShmemBindingTableOffset = NULL; /* start of the binding
8585
* table (for bootstrap) */
8686
static int ShmemBootstrap = FALSE; /* flag becomes true when shared
8787
* mem is created by POSTMASTER */
8888

8989
static HTAB *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-
extern void ShmemBindingTabReset(void);
62+
extern void ShmemBindingTableReset(void);
6363
extern void ShmemCreate(unsigned int key, unsigned int size);
6464
extern int InitShmem(unsigned int key, unsigned int size);
6565
extern long *ShmemAlloc(unsigned long size);

0 commit comments

Comments
 (0)