Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
eef15f55
Commit
eef15f55
authored
Jun 25, 1998
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename BindingTab to BindingTable.
parent
a8376c1c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
13 deletions
+13
-13
src/backend/storage/ipc/ipci.c
src/backend/storage/ipc/ipci.c
+2
-2
src/backend/storage/ipc/shmem.c
src/backend/storage/ipc/shmem.c
+9
-9
src/include/storage/shmem.h
src/include/storage/shmem.h
+2
-2
No files found.
src/backend/storage/ipc/ipci.c
View file @
eef15f55
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipci.c,v 1.1
1 1998/06/23 17:59:5
4 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipci.c,v 1.1
2 1998/06/25 14:24:3
4 momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -83,7 +83,7 @@ CreateSharedMemoryAndSemaphores(IPCKey key)
IPCKeyGetBufferMemoryKey
(
key
),
size
);
}
ShmemCreate
(
IPCKeyGetBufferMemoryKey
(
key
),
size
);
ShmemBindingTabReset
();
ShmemBindingTab
le
Reset
();
InitShmem
(
key
,
size
);
InitBufferPool
(
key
);
...
...
src/backend/storage/ipc/shmem.c
View file @
eef15f55
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/shmem.c,v 1.2
1 1998/06/23 16:04:46
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/shmem.c,v 1.2
2 1998/06/25 14:24:34
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -81,7 +81,7 @@ SPINLOCK BindingLock; /* lock for binding table access */
static
unsigned
long
*
ShmemFreeStart
=
NULL
;
/* pointer to the OFFSET
* of first free shared
* memory */
static
unsigned
long
*
ShmemBindingTabOffset
=
NULL
;
/* start of the binding
static
unsigned
long
*
ShmemBindingTab
le
Offset
=
NULL
;
/* start of the binding
* table (for bootstrap) */
static
int
ShmemBootstrap
=
FALSE
;
/* flag becomes true when shared
* mem is created by POSTMASTER */
...
...
@@ -89,13 +89,13 @@ static int ShmemBootstrap = FALSE; /* flag becomes true when shared
static
HTAB
*
BindingTable
=
NULL
;
/* ---------------------
* ShmemBindingTabReset() - Resets the binding table to NULL....
* ShmemBindingTab
le
Reset() - Resets the binding table to NULL....
* useful when the postmaster destroys existing shared memory
* and creates all new segments after a backend crash.
* ----------------------
*/
void
ShmemBindingTabReset
(
void
)
ShmemBindingTab
le
Reset
(
void
)
{
BindingTable
=
(
HTAB
*
)
NULL
;
}
...
...
@@ -179,10 +179,10 @@ InitShmem(unsigned int key, unsigned int size)
/* First long in shared memory is the count of available space */
ShmemFreeStart
=
(
unsigned
long
*
)
ShmemBase
;
/* next is a shmem pointer to the binding table */
ShmemBindingTabOffset
=
ShmemFreeStart
+
1
;
ShmemBindingTab
le
Offset
=
ShmemFreeStart
+
1
;
currFreeSpace
+=
sizeof
(
ShmemFreeStart
)
+
sizeof
(
ShmemBindingTabOffset
);
sizeof
(
ShmemFreeStart
)
+
sizeof
(
ShmemBindingTab
le
Offset
);
/*
* bootstrap initialize spin locks so we can start to use the
...
...
@@ -245,7 +245,7 @@ InitShmem(unsigned int key, unsigned int size)
Assert
(
ShmemBootstrap
);
result
->
location
=
MAKE_OFFSET
(
BindingTable
->
hctl
);
*
ShmemBindingTabOffset
=
result
->
location
;
*
ShmemBindingTab
le
Offset
=
result
->
location
;
result
->
size
=
BTABLE_SIZE
;
ShmemBootstrap
=
FALSE
;
...
...
@@ -514,10 +514,10 @@ ShmemInitStruct(char *name, unsigned long size, bool *foundPtr)
}
else
{
Assert
(
ShmemBindingTabOffset
);
Assert
(
ShmemBindingTab
le
Offset
);
*
foundPtr
=
TRUE
;
return
((
long
*
)
MAKE_PTR
(
*
ShmemBindingTabOffset
));
return
((
long
*
)
MAKE_PTR
(
*
ShmemBindingTab
le
Offset
));
}
...
...
src/include/storage/shmem.h
View file @
eef15f55
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: shmem.h,v 1.1
1 1998/02/26 04:43:34
momjian Exp $
* $Id: shmem.h,v 1.1
2 1998/06/25 14:24:35
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -59,7 +59,7 @@ typedef struct SHM_QUEUE
}
SHM_QUEUE
;
/* shmem.c */
extern
void
ShmemBindingTabReset
(
void
);
extern
void
ShmemBindingTab
le
Reset
(
void
);
extern
void
ShmemCreate
(
unsigned
int
key
,
unsigned
int
size
);
extern
int
InitShmem
(
unsigned
int
key
,
unsigned
int
size
);
extern
long
*
ShmemAlloc
(
unsigned
long
size
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment