File tree 1 file changed +17
-15
lines changed
1 file changed +17
-15
lines changed Original file line number Diff line number Diff line change @@ -57,21 +57,6 @@ int max_locks_per_xact; /* set by guc.c */
57
57
#define NLOCKENTS () \
58
58
mul_size(max_locks_per_xact, add_size(MaxBackends, max_prepared_xacts))
59
59
60
- /* Lock names. For monitoring purposes */
61
- const char * LOCK_NAMES [] =
62
- {
63
- "Relation" ,
64
- "RelationExtend" ,
65
- "Page" ,
66
- "Tuple" ,
67
- "Transaction" ,
68
- "VirtualTransaction" ,
69
- "SpeculativeToken" ,
70
- "Object" ,
71
- "Userlock" ,
72
- "Advisory"
73
- };
74
-
75
60
/*
76
61
* Data structures defining the semantics of the standard lock methods.
77
62
*
@@ -119,6 +104,20 @@ static const LOCKMASK LockConflicts[] = {
119
104
120
105
};
121
106
107
+ /* Lock names. For monitoring purposes */
108
+ const char * LOCK_NAMES [] =
109
+ {
110
+ "Relation" ,
111
+ "RelationExtend" ,
112
+ "Page" ,
113
+ "Tuple" ,
114
+ "Transaction" ,
115
+ "VirtualTransaction" ,
116
+ "Object" ,
117
+ "Userlock" ,
118
+ "Advisory"
119
+ };
120
+
122
121
/* Names of lock modes, for debug printouts */
123
122
static const char * const lock_mode_names [] =
124
123
{
@@ -3314,6 +3313,9 @@ LockShmemSize(void)
3314
3313
max_table_size *= 2 ;
3315
3314
size = add_size (size , hash_estimate_size (max_table_size , sizeof (PROCLOCK )));
3316
3315
3316
+ /* Lock Manager LWLock structures */
3317
+ size = add_size (size , LWLockTrancheShmemSize (NUM_LOCK_PARTITIONS ));
3318
+
3317
3319
/*
3318
3320
* Since NLOCKENTS is only an estimate, add 10% safety margin.
3319
3321
*/
You can’t perform that action at this time.
0 commit comments