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

Commit991dee2

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 parent4dddf85 commit991dee2

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
@@ -58,7 +58,7 @@ typedef enum
5858
LOCAL_OBJECT,
5959
SHARED_OBJECT,
6060
REMOTE_OBJECT
61-
}objectType;
61+
}SharedDependencyObjectType;
6262

6363
staticvoidgetOidListDiff(Oid*list1,int*nlist1,Oid*list2,int*nlist2);
6464
staticOidclassIdGetDbId(OidclassId);
@@ -75,7 +75,8 @@ static void shdepDropDependency(Relation sdepRel,
7575
booldrop_subobjects,
7676
OidrefclassId,OidrefobjId,
7777
SharedDependencyTypedeptype);
78-
staticvoidstoreObjectDescription(StringInfodescs,objectTypetype,
78+
staticvoidstoreObjectDescription(StringInfodescs,
79+
SharedDependencyObjectTypetype,
7980
ObjectAddress*object,
8081
SharedDependencyTypedeptype,
8182
intcount);
@@ -1053,7 +1054,8 @@ shdepLockAndCheckObject(Oid classId, Oid objectId)
10531054
* and count to be nonzero; deptype is not used in this case.
10541055
*/
10551056
staticvoid
1056-
storeObjectDescription(StringInfodescs,objectTypetype,
1057+
storeObjectDescription(StringInfodescs,
1058+
SharedDependencyObjectTypetype,
10571059
ObjectAddress*object,
10581060
SharedDependencyTypedeptype,
10591061
intcount)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp