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
7487a826
Commit
7487a826
authored
Jun 27, 1998
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More cleanups for compiler warnings.
parent
48a94aaf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
9 deletions
+3
-9
src/backend/postmaster/postmaster.c
src/backend/postmaster/postmaster.c
+2
-2
src/backend/storage/ipc/shmem.c
src/backend/storage/ipc/shmem.c
+1
-7
No files found.
src/backend/postmaster/postmaster.c
View file @
7487a826
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.9
1 1998/06/27 13:24:19
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.9
2 1998/06/27 14:06:40
momjian Exp $
*
*
* NOTES
* NOTES
*
*
...
@@ -1032,7 +1032,7 @@ CleanupProc(int pid,
...
@@ -1032,7 +1032,7 @@ CleanupProc(int pid,
if
(
DebugLvl
)
if
(
DebugLvl
)
fprintf
(
stderr
,
"%s: CleanupProc: reinitializing shared memory and semaphores
\n
"
,
fprintf
(
stderr
,
"%s: CleanupProc: reinitializing shared memory and semaphores
\n
"
,
progname
);
progname
);
shmem_exit
();
shmem_exit
(
0
);
reset_shared
(
PostPortName
);
reset_shared
(
PostPortName
);
}
}
}
}
...
...
src/backend/storage/ipc/shmem.c
View file @
7487a826
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/shmem.c,v 1.2
3 1998/06/27 04:53:36
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/shmem.c,v 1.2
4 1998/06/27 14:06:41
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -490,12 +490,9 @@ ShmemInitStruct(char *name, unsigned long size, bool *foundPtr)
...
@@ -490,12 +490,9 @@ ShmemInitStruct(char *name, unsigned long size, bool *foundPtr)
if
(
!
BindingTable
)
if
(
!
BindingTable
)
{
{
/* Assert() is a macro now. substitutes inside quotes. */
#ifdef USE_ASSERT_CHECKING
#ifdef USE_ASSERT_CHECKING
char
*
strname
=
"BindingTable"
;
char
*
strname
=
"BindingTable"
;
#endif
#endif
/*
/*
* If the binding table doesnt exist, we fake it.
* If the binding table doesnt exist, we fake it.
*
*
...
@@ -531,7 +528,6 @@ ShmemInitStruct(char *name, unsigned long size, bool *foundPtr)
...
@@ -531,7 +528,6 @@ ShmemInitStruct(char *name, unsigned long size, bool *foundPtr)
if
(
!
result
)
if
(
!
result
)
{
{
SpinRelease
(
BindingLock
);
SpinRelease
(
BindingLock
);
elog
(
ERROR
,
"ShmemInitStruct: Binding Table corrupted"
);
elog
(
ERROR
,
"ShmemInitStruct: Binding Table corrupted"
);
...
@@ -540,7 +536,6 @@ ShmemInitStruct(char *name, unsigned long size, bool *foundPtr)
...
@@ -540,7 +536,6 @@ ShmemInitStruct(char *name, unsigned long size, bool *foundPtr)
}
}
else
if
(
*
foundPtr
)
else
if
(
*
foundPtr
)
{
{
/*
/*
* Structure is in the binding table so someone else has allocated
* Structure is in the binding table so someone else has allocated
* it already. The size better be the same as the size we are
* it already. The size better be the same as the size we are
...
@@ -558,7 +553,6 @@ ShmemInitStruct(char *name, unsigned long size, bool *foundPtr)
...
@@ -558,7 +553,6 @@ ShmemInitStruct(char *name, unsigned long size, bool *foundPtr)
}
}
else
else
{
{
/* It isn't in the table yet. allocate and initialize it */
/* It isn't in the table yet. allocate and initialize it */
structPtr
=
ShmemAlloc
((
long
)
size
);
structPtr
=
ShmemAlloc
((
long
)
size
);
if
(
!
structPtr
)
if
(
!
structPtr
)
...
...
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