File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 8
8
*
9
9
*
10
10
* IDENTIFICATION
11
- * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lock.c,v 1.83 2001/02/22 23:20:06 momjian Exp $
11
+ * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lock.c,v 1.84 2001/02/23 18:28:46 momjian Exp $
12
12
*
13
13
* NOTES
14
14
* Outside modules can create a lock table and acquire/release
@@ -1411,8 +1411,7 @@ LockShmemSize(int maxBackends)
1411
1411
1412
1412
size += MAXALIGN (sizeof (PROC_HDR )); /* ProcGlobal */
1413
1413
size += MAXALIGN (maxBackends * sizeof (PROC )); /* each MyProc */
1414
- size += MAXALIGN (maxBackends * sizeof (LOCKMETHODCTL )); /* each
1415
- * lockMethodTable->ctl */
1414
+ size += MAXALIGN (MAX_LOCK_METHODS * sizeof (LOCKMETHODCTL )); /* each lockMethodTable->ctl */
1416
1415
1417
1416
/* lockHash table */
1418
1417
size += hash_estimate_size (NLOCKENTS (maxBackends ),
Original file line number Diff line number Diff line change 7
7
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
8
8
* Portions Copyright (c) 1994, Regents of the University of California
9
9
*
10
- * $Id: lock.h,v 1.45 2001/02/22 23:02:33 momjian Exp $
10
+ * $Id: lock.h,v 1.46 2001/02/23 18:28:46 momjian Exp $
11
11
*
12
12
*-------------------------------------------------------------------------
13
13
*/
@@ -79,7 +79,8 @@ typedef int LOCKMETHOD;
79
79
80
80
/*
81
81
* This is the control structure for a lock table. It
82
- * lives in shared memory:
82
+ * lives in shared memory. This information is the same
83
+ * for all backends.
83
84
*
84
85
* lockmethod -- the handle used by the lock table's clients to
85
86
* refer to the type of lock table being used.
@@ -107,7 +108,7 @@ typedef struct LOCKMETHODCTL
107
108
} LOCKMETHODCTL ;
108
109
109
110
/*
110
- * Non-shared header for a lock table.
111
+ * Eack backend has a non-shared lock table header .
111
112
*
112
113
* lockHash -- hash table holding per-locked-object lock information
113
114
* holderHash -- hash table holding per-lock-holder lock information
You can’t perform that action at this time.
0 commit comments