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
cba0c655
Commit
cba0c655
authored
Jun 23, 1998
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename MAIN_MEMORY to STABLE_MEMORY_STORAGE
parent
62b124b4
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
31 additions
and
31 deletions
+31
-31
src/backend/storage/ipc/ipci.c
src/backend/storage/ipc/ipci.c
+3
-3
src/backend/storage/ipc/spin.c
src/backend/storage/ipc/spin.c
+9
-9
src/backend/storage/smgr/mm.c
src/backend/storage/smgr/mm.c
+3
-3
src/backend/storage/smgr/smgr.c
src/backend/storage/smgr/smgr.c
+5
-5
src/backend/storage/smgr/smgrtype.c
src/backend/storage/smgr/smgrtype.c
+3
-3
src/include/c.h
src/include/c.h
+3
-3
src/include/storage/ipc.h
src/include/storage/ipc.h
+5
-5
No files found.
src/backend/storage/ipc/ipci.c
View file @
cba0c655
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipci.c,v 1.
8 1998/05/29 17:00:12
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipci.c,v 1.
9 1998/06/23 15:35:44
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -73,9 +73,9 @@ CreateSharedMemoryAndSemaphores(IPCKey key)
CreateSpinlocks
(
IPCKeyGetSpinLockSemaphoreKey
(
key
));
size
=
BufferShmemSize
()
+
LockShmemSize
();
#ifdef
MAIN_MEMORY
#ifdef
STABLE_MEMORY_STORAGE
size
+=
MMShmemSize
();
#endif
/* MAIN_MEMORY */
#endif
if
(
DebugLvl
>
1
)
{
...
...
src/backend/storage/ipc/spin.c
View file @
cba0c655
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/Attic/spin.c,v 1.1
1 1998/06/15 19:29:16
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/Attic/spin.c,v 1.1
2 1998/06/23 15:35:44
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -60,10 +60,10 @@ InitSpinLocks(int init, IPCKey key)
extern
SPINLOCK
SInvalLock
;
extern
SPINLOCK
OidGenLockId
;
#ifdef
MAIN_MEMORY
#ifdef
STABLE_MEMORY_STORAGE
extern
SPINLOCK
MMCacheLock
;
#endif
/* SONY_JUKEBOX */
#endif
/* These six spinlocks have fixed location is shmem */
ShmemLock
=
(
SPINLOCK
)
SHMEMLOCKID
;
...
...
@@ -74,9 +74,9 @@ InitSpinLocks(int init, IPCKey key)
SInvalLock
=
(
SPINLOCK
)
SINVALLOCKID
;
OidGenLockId
=
(
SPINLOCK
)
OIDGENLOCKID
;
#ifdef
MAIN_MEMORY
#ifdef
STABLE_MEMORY_STORAGE
MMCacheLock
=
(
SPINLOCK
)
MMCACHELOCKID
;
#endif
/* MAIN_MEMORY */
#endif
return
(
TRUE
);
}
...
...
@@ -285,10 +285,10 @@ InitSpinLocks(int init, IPCKey key)
extern
SPINLOCK
SInvalLock
;
extern
SPINLOCK
OidGenLockId
;
#ifdef
MAIN_MEMORY
#ifdef
STABLE_MEMORY_STORAGE
extern
SPINLOCK
MMCacheLock
;
#endif
/* MAIN_MEMORY */
#endif
if
(
!
init
||
key
!=
IPC_PRIVATE
)
{
...
...
@@ -313,9 +313,9 @@ InitSpinLocks(int init, IPCKey key)
SInvalLock
=
(
SPINLOCK
)
SINVALLOCKID
;
OidGenLockId
=
(
SPINLOCK
)
OIDGENLOCKID
;
#ifdef
MAIN_MEMORY
#ifdef
STABLE_MEMORY_STORAGE
MMCacheLock
=
(
SPINLOCK
)
MMCACHELOCKID
;
#endif
/* MAIN_MEMORY */
#endif
return
(
TRUE
);
}
...
...
src/backend/storage/smgr/mm.c
View file @
cba0c655
...
...
@@ -10,13 +10,13 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/smgr/Attic/mm.c,v 1.
8 1998/05/29 17:00:13
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/smgr/Attic/mm.c,v 1.
9 1998/06/23 15:35:45
momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "postgres.h"
#ifdef
MAIN_MEMORY
#ifdef
STABLE_MEMORY_STORAGE
#include <math.h>
#include "storage/ipc.h"
...
...
@@ -608,4 +608,4 @@ MMShmemSize()
return
(
size
);
}
#endif
/*
MAIN_MEMORY
*/
#endif
/*
STABLE_MEMORY_STORAGE
*/
src/backend/storage/smgr/smgr.c
View file @
cba0c655
...
...
@@ -10,7 +10,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/smgr/smgr.c,v 1.1
5 1998/05/29 17:00:14
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/smgr/smgr.c,v 1.1
6 1998/06/23 15:35:45
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -56,13 +56,13 @@ static f_smgr smgrsw[] = {
mdread
,
mdwrite
,
mdflush
,
mdblindwrt
,
mdnblocks
,
mdtruncate
,
mdcommit
,
mdabort
},
#ifdef
MAIN_MEMORY
#ifdef
STABLE_MEMORY_STORAGE
/* main memory */
{
mminit
,
mmshutdown
,
mmcreate
,
mmunlink
,
mmextend
,
mmopen
,
mmclose
,
mmread
,
mmwrite
,
mmflush
,
mmblindwrt
,
mmnblocks
,
NULL
,
mmcommit
,
mmabort
},
#endif
/* MAIN_MEMORY */
#endif
};
/*
...
...
@@ -74,9 +74,9 @@ static f_smgr smgrsw[] = {
static
bool
smgrwo
[]
=
{
false
,
/* magnetic disk */
#ifdef
MAIN_MEMORY
#ifdef
STABLE_MEMORY_STORAGE
false
,
/* main memory */
#endif
/* MAIN_MEMORY */
#endif
};
static
int
NSmgr
=
lengthof
(
smgrsw
);
...
...
src/backend/storage/smgr/smgrtype.c
View file @
cba0c655
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/smgr/smgrtype.c,v 1.
8 1998/02/26 04:36:17
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/smgr/smgrtype.c,v 1.
9 1998/06/23 15:35:45
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -32,9 +32,9 @@ typedef struct smgrid
static
smgrid
StorageManager
[]
=
{
{
"magnetic disk"
},
#ifdef
MAIN_MEMORY
#ifdef
STABLE_MEMORY_STORAGE
{
"main memory"
}
#endif
/* MAIN_MEMORY */
#endif
};
static
int
NStorageManagers
=
lengthof
(
StorageManager
);
...
...
src/include/c.h
View file @
cba0c655
...
...
@@ -7,7 +7,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: c.h,v 1.4
1 1998/06/20 04:34:31
momjian Exp $
* $Id: c.h,v 1.4
2 1998/06/23 15:35:46
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -779,8 +779,8 @@ extern char *form(const char *fmt,...);
* we distribute to other sites.
* ----------------
*/
#ifdef
SEQUOIA
#define
MAIN_MEMORY
#ifdef
NOT_USED
#define
STABLE_MEMORY_STORAGE
#endif
...
...
src/include/storage/ipc.h
View file @
cba0c655
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: ipc.h,v 1.2
5 1998/05/29 17:00:26
momjian Exp $
* $Id: ipc.h,v 1.2
6 1998/06/23 15:35:48
momjian Exp $
*
* NOTES
* This file is very architecture-specific. This stuff should actually
...
...
@@ -112,9 +112,9 @@ typedef enum _LockId_
LOCKMGRLOCKID
,
SINVALLOCKID
,
#ifdef
MAIN_MEMORY
#ifdef
STABLE_MEMORY_STORAGE
MMCACHELOCKID
,
#endif
/* MAIN_MEMORY */
#endif
PROCSTRUCTLOCKID
,
FIRSTFREELOCKID
...
...
@@ -143,9 +143,9 @@ typedef enum _LockId_
LOCKMGRLOCKID
,
SINVALLOCKID
,
#ifdef
MAIN_MEMORY
#ifdef
STABLE_MEMORY_STORAGE
MMCACHELOCKID
,
#endif
/* MAIN_MEMORY */
#endif
PROCSTRUCTLOCKID
,
OIDGENLOCKID
,
...
...
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