diff options
| author | Bruce Momjian <bruce@momjian.us> | 1997-08-19 21:40:56 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 1997-08-19 21:40:56 +0000 |
| commit | 1d8bbfd2e7cfb72cbe4d5c5d4fa650a28dedac0b (patch) | |
| tree | 8d3a5dac9207f22c3afb8afb563d54f88774deb3 /src/backend/storage/lmgr/multi.c | |
| parent | b992e200b8872ecb6652ec85111995f8d4c5aee0 (diff) | |
| download | postgresql-1d8bbfd2e7cfb72cbe4d5c5d4fa650a28dedac0b.tar.gz | |
Make functions static where possible, enclose unused functions in #ifdef NOT_USED.
Diffstat (limited to 'src/backend/storage/lmgr/multi.c')
| -rw-r--r-- | src/backend/storage/lmgr/multi.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/backend/storage/lmgr/multi.c b/src/backend/storage/lmgr/multi.c index 1f9894fdb4..9cd3a36b48 100644 --- a/src/backend/storage/lmgr/multi.c +++ b/src/backend/storage/lmgr/multi.c @@ -12,7 +12,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/Attic/multi.c,v 1.3 1997/08/12 22:54:09 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/Attic/multi.c,v 1.4 1997/08/19 21:33:25 momjian Exp $ * * NOTES: * (1) The lock.c module assumes that the caller here is doing @@ -29,6 +29,10 @@ #include "utils/rel.h" #include "miscadmin.h" /* MyDatabaseId */ +static bool MultiAcquire(LockTableId tableId, LOCKTAG *tag, LOCKT lockt, + LOCK_LEVEL level); +static bool MultiRelease(LockTableId tableId, LOCKTAG *tag, LOCKT lockt, + LOCK_LEVEL level); /* * INTENT indicates to higher level that a lower level lock has been @@ -186,7 +190,7 @@ MultiLockPage(LockInfo linfo, ItemPointer tidPtr, LOCKT lockt) * Returns: TRUE if lock is set, FALSE if not * Side Effects: */ -bool +static bool MultiAcquire(LockTableId tableId, LOCKTAG *tag, LOCKT lockt, @@ -288,6 +292,7 @@ MultiAcquire(LockTableId tableId, * Release a page in the multi-level lock table * ------------------ */ +#ifdef NOT_USED bool MultiReleasePage(LockInfo linfo, ItemPointer tidPtr, LOCKT lockt) { @@ -307,6 +312,7 @@ MultiReleasePage(LockInfo linfo, ItemPointer tidPtr, LOCKT lockt) return (MultiRelease(MultiTableId, &tag, lockt, PAGE_LEVEL)); } +#endif /* ------------------ * Release a relation in the multi-level lock table @@ -335,7 +341,7 @@ MultiReleaseReln(LockInfo linfo, LOCKT lockt) * * Returns: TRUE if successful, FALSE otherwise. */ -bool +static bool MultiRelease(LockTableId tableId, LOCKTAG *tag, LOCKT lockt, |
