Skip to content

Commit 80d2f4c

Browse files
committed
Fix ADVISORY lock test fail. Reordering enum.
1 parent 4ee2ad8 commit 80d2f4c

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+
case LOCKTAG_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
#define LOCKTAG_LAST_TYPE LOCKTAG_ADVISORY

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy