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
68ed2963
Commit
68ed2963
authored
Dec 03, 2000
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't use 'private' as a parameter name in visible headers ... makes C++
very unhappy ...
parent
e7c80220
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
10 deletions
+11
-10
src/backend/storage/ipc/ipc.c
src/backend/storage/ipc/ipc.c
+3
-3
src/backend/storage/ipc/ipci.c
src/backend/storage/ipc/ipci.c
+4
-4
src/include/storage/ipc.h
src/include/storage/ipc.h
+4
-3
No files found.
src/backend/storage/ipc/ipc.c
View file @
68ed2963
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipc.c,v 1.5
5 2000/11/30 03:11:24
tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipc.c,v 1.5
6 2000/12/03 17:18:10
tgl Exp $
*
* NOTES
*
...
...
@@ -663,7 +663,7 @@ IpcInitKeyAssignment(int port)
* but we do not fail upon collision with non-Postgres shmem segments.
*/
PGShmemHeader
*
IpcMemoryCreate
(
uint32
size
,
bool
p
rivate
,
int
permission
)
IpcMemoryCreate
(
uint32
size
,
bool
makeP
rivate
,
int
permission
)
{
void
*
memAddress
;
PGShmemHeader
*
hdr
;
...
...
@@ -677,7 +677,7 @@ IpcMemoryCreate(uint32 size, bool private, int permission)
IpcMemoryId
shmid
;
/* Special case if creating a private segment --- just malloc() it */
if
(
p
rivate
)
if
(
makeP
rivate
)
{
memAddress
=
PrivateMemoryCreate
(
size
);
break
;
...
...
src/backend/storage/ipc/ipci.c
View file @
68ed2963
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipci.c,v 1.3
6 2000/11/30 01:39:07
tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipci.c,v 1.3
7 2000/12/03 17:18:10
tgl Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -33,11 +33,11 @@
* It is NEVER called by a backend forked from the postmaster;
* for such a backend, the shared memory is already ready-to-go.
*
* If "
p
rivate" is true then we only need private memory, not shared
* If "
makeP
rivate" is true then we only need private memory, not shared
* memory. This is true for a standalone backend, false for a postmaster.
*/
void
CreateSharedMemoryAndSemaphores
(
bool
p
rivate
,
int
maxBackends
)
CreateSharedMemoryAndSemaphores
(
bool
makeP
rivate
,
int
maxBackends
)
{
int
size
;
PGShmemHeader
*
seghdr
;
...
...
@@ -62,7 +62,7 @@ CreateSharedMemoryAndSemaphores(bool private, int maxBackends)
/*
* Create the shmem segment
*/
seghdr
=
IpcMemoryCreate
(
size
,
p
rivate
,
IPCProtection
);
seghdr
=
IpcMemoryCreate
(
size
,
makeP
rivate
,
IPCProtection
);
/*
* First initialize spinlocks --- needed by InitShmemAllocation()
...
...
src/include/storage/ipc.h
View file @
68ed2963
...
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: ipc.h,v 1.4
3 2000/11/28 23:27:57
tgl Exp $
* $Id: ipc.h,v 1.4
4 2000/12/03 17:18:09
tgl Exp $
*
* Some files that would normally need to include only sys/ipc.h must
* instead include this file because on Ultrix, sys/ipc.h is not designed
...
...
@@ -104,10 +104,11 @@ extern void IpcSemaphoreUnlock(IpcSemaphoreId semId, int sem);
extern
bool
IpcSemaphoreTryLock
(
IpcSemaphoreId
semId
,
int
sem
);
extern
int
IpcSemaphoreGetValue
(
IpcSemaphoreId
semId
,
int
sem
);
extern
PGShmemHeader
*
IpcMemoryCreate
(
uint32
size
,
bool
p
rivate
,
extern
PGShmemHeader
*
IpcMemoryCreate
(
uint32
size
,
bool
makeP
rivate
,
int
permission
);
/* ipci.c */
extern
void
CreateSharedMemoryAndSemaphores
(
bool
private
,
int
maxBackends
);
extern
void
CreateSharedMemoryAndSemaphores
(
bool
makePrivate
,
int
maxBackends
);
#endif
/* IPC_H */
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