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

Commitf5da3d8

Browse files
committed
Fix up outdated comments
The existing comments in load_relcache_init_file() were not flexiblewhen new entries were added at the end, so they ended up a bit wrong.Simplify the comments to avoid this issue.
1 parentcad5692 commitf5da3d8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

‎src/backend/utils/cache/relcache.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6141,7 +6141,7 @@ load_relcache_init_file(bool shared)
61416141
if (rel->rd_isnailed)
61426142
nailed_indexes++;
61436143

6144-
/*next,read the pg_index tuple */
6144+
/* read the pg_index tuple */
61456145
if (fread(&len,1,sizeof(len),fp)!=sizeof(len))
61466146
gotoread_failed;
61476147

@@ -6172,7 +6172,7 @@ load_relcache_init_file(bool shared)
61726172
*/
61736173
InitIndexAmRoutine(rel);
61746174

6175-
/*next,read the vector of opfamily OIDs */
6175+
/* read the vector of opfamily OIDs */
61766176
if (fread(&len,1,sizeof(len),fp)!=sizeof(len))
61776177
gotoread_failed;
61786178

@@ -6182,7 +6182,7 @@ load_relcache_init_file(bool shared)
61826182

61836183
rel->rd_opfamily=opfamily;
61846184

6185-
/*next,read the vector of opcintype OIDs */
6185+
/* read the vector of opcintype OIDs */
61866186
if (fread(&len,1,sizeof(len),fp)!=sizeof(len))
61876187
gotoread_failed;
61886188

@@ -6192,7 +6192,7 @@ load_relcache_init_file(bool shared)
61926192

61936193
rel->rd_opcintype=opcintype;
61946194

6195-
/*next,read the vector of support procedure OIDs */
6195+
/* read the vector of support procedure OIDs */
61966196
if (fread(&len,1,sizeof(len),fp)!=sizeof(len))
61976197
gotoread_failed;
61986198
support= (RegProcedure*)MemoryContextAlloc(indexcxt,len);
@@ -6201,7 +6201,7 @@ load_relcache_init_file(bool shared)
62016201

62026202
rel->rd_support=support;
62036203

6204-
/*next,read the vector of collation OIDs */
6204+
/* read the vector of collation OIDs */
62056205
if (fread(&len,1,sizeof(len),fp)!=sizeof(len))
62066206
gotoread_failed;
62076207

@@ -6211,7 +6211,7 @@ load_relcache_init_file(bool shared)
62116211

62126212
rel->rd_indcollation=indcollation;
62136213

6214-
/*finally,read the vector of indoption values */
6214+
/* read the vector of indoption values */
62156215
if (fread(&len,1,sizeof(len),fp)!=sizeof(len))
62166216
gotoread_failed;
62176217

@@ -6221,7 +6221,7 @@ load_relcache_init_file(bool shared)
62216221

62226222
rel->rd_indoption=indoption;
62236223

6224-
/*finally,read the vector of opcoptions values */
6224+
/* read the vector of opcoptions values */
62256225
rel->rd_opcoptions= (bytea**)
62266226
MemoryContextAllocZero(indexcxt,sizeof(*rel->rd_opcoptions)*relform->relnatts);
62276227

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp