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

Commit2e4c501

Browse files
committed
Rename pg_shdepend.c's typedef "objectType" to SharedDependencyObjectType.
The name objectType is widely used as a field name, and it's pure luck thatthis conflict has not caused pgindent to go crazy before. It messed uppg_audit.c pretty good though. Since pg_shdepend.c doesn't export thistypedef and only uses it in three places, changing that seems saner thanchanging the field usages.Back-patch because we're contemplating using the union of all branchtypedefs for future pgindent runs, so this won't fix anything if itstays the same in back branches.
1 parent2c2c5f0 commit2e4c501

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

‎src/backend/catalog/pg_shdepend.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ typedef enum
6262
LOCAL_OBJECT,
6363
SHARED_OBJECT,
6464
REMOTE_OBJECT
65-
}objectType;
65+
}SharedDependencyObjectType;
6666

6767
staticvoidgetOidListDiff(Oid*list1,int*nlist1,Oid*list2,int*nlist2);
6868
staticOidclassIdGetDbId(OidclassId);
@@ -79,7 +79,8 @@ static void shdepDropDependency(Relation sdepRel,
7979
booldrop_subobjects,
8080
OidrefclassId,OidrefobjId,
8181
SharedDependencyTypedeptype);
82-
staticvoidstoreObjectDescription(StringInfodescs,objectTypetype,
82+
staticvoidstoreObjectDescription(StringInfodescs,
83+
SharedDependencyObjectTypetype,
8384
ObjectAddress*object,
8485
SharedDependencyTypedeptype,
8586
intcount);
@@ -1057,7 +1058,8 @@ shdepLockAndCheckObject(Oid classId, Oid objectId)
10571058
* and count to be nonzero; deptype is not used in this case.
10581059
*/
10591060
staticvoid
1060-
storeObjectDescription(StringInfodescs,objectTypetype,
1061+
storeObjectDescription(StringInfodescs,
1062+
SharedDependencyObjectTypetype,
10611063
ObjectAddress*object,
10621064
SharedDependencyTypedeptype,
10631065
intcount)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp