Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitba2bc4a

Browse files
committed
Use MaxLockMode symbol in more places.
As long as we have this macro, it makes sense to use it inthe LockMethodData structures.Julien RouhaudDiscussion:https://postgr.es/m/20220103064722.ewdv4evlez5m7mdn@jrouhaud
1 parent9623d89 commitba2bc4a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎src/backend/storage/lmgr/lock.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ static bool Dummy_trace = false;
124124
#endif
125125

126126
staticconstLockMethodDatadefault_lockmethod= {
127-
AccessExclusiveLock,/* highest valid lock mode number */
127+
MaxLockMode,
128128
LockConflicts,
129129
lock_mode_names,
130130
#ifdefLOCK_DEBUG
@@ -135,7 +135,7 @@ static const LockMethodData default_lockmethod = {
135135
};
136136

137137
staticconstLockMethodDatauser_lockmethod= {
138-
AccessExclusiveLock,/* highest valid lock mode number */
138+
MaxLockMode,
139139
LockConflicts,
140140
lock_mode_names,
141141
#ifdefLOCK_DEBUG

‎src/include/storage/lockdefs.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ typedef int LOCKMODE;
4545
#defineAccessExclusiveLock8/* ALTER TABLE, DROP TABLE, VACUUM FULL,
4646
* and unqualified LOCK TABLE */
4747

48-
#defineMaxLockMode8
48+
#defineMaxLockMode8/* highest standard lock mode */
4949

5050

5151
/* WAL representation of an AccessExclusiveLock on a table */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp