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

Commit80d2f4c

Browse files
committed
Fix ADVISORY lock test fail. Reordering enum.
1 parent4ee2ad8 commit80d2f4c

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1011,6 +1011,11 @@ DescribeLockTag(StringInfo buf, const LOCKTAG *tag)
10111011
tag->locktag_field3,
10121012
tag->locktag_field4);
10131013
break;
1014+
caseLOCKTAG_SMGR:
1015+
appendStringInfo(buf,
1016+
_("smgr lock %u"),
1017+
tag->locktag_field1);
1018+
break;
10141019
default:
10151020
appendStringInfo(buf,
10161021
_("unrecognized locktag type %d"),

‎src/include/storage/lock.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,6 @@ typedef enum LockTagType
168168
/* ID info for a relation is DB OID + REL OID; DB OID = 0 if shared */
169169
LOCKTAG_RELATION_EXTEND,/* the right to extend a relation */
170170
/* same ID info as RELATION */
171-
LOCKTAG_SMGR,/**/
172-
/**/
173171
LOCKTAG_PAGE,/* one page of a relation */
174172
/* ID info for a page is RELATION info + BlockNumber */
175173
LOCKTAG_TUPLE,/* one physical tuple */
@@ -189,7 +187,8 @@ typedef enum LockTagType
189187
* Also, we use DB OID = 0 for shared objects such as tablespaces.
190188
*/
191189
LOCKTAG_USERLOCK,/* reserved for old contrib/userlock code */
192-
LOCKTAG_ADVISORY/* advisory user locks */
190+
LOCKTAG_ADVISORY,/* advisory user locks */
191+
LOCKTAG_SMGR/**/
193192
}LockTagType;
194193

195194
#defineLOCKTAG_LAST_TYPELOCKTAG_ADVISORY

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp