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

Commit1f44a31

Browse files
committed
Add missing reset of need_initialization in reloptions code.
This resulted in useless extra work during every call of parseRelOptions,but no bad effects other than that. Noted by Alvaro.
1 parent924d6ed commit1f44a31

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

‎src/backend/access/common/reloptions.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/access/common/reloptions.c,v 1.33 2010/02/26 02:00:32 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/access/common/reloptions.c,v 1.34 2010/03/11 21:47:19 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -244,8 +244,9 @@ static void
244244
initialize_reloptions(void)
245245
{
246246
inti;
247-
intj=0;
247+
intj;
248248

249+
j=0;
249250
for (i=0;boolRelOpts[i].gen.name;i++)
250251
j++;
251252
for (i=0;intRelOpts[i].gen.name;i++)
@@ -302,6 +303,9 @@ initialize_reloptions(void)
302303

303304
/* add a list terminator */
304305
relOpts[j]=NULL;
306+
307+
/* flag the work is complete */
308+
need_initialization= false;
305309
}
306310

307311
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp