mirror of
https://github.com/postgres/postgres.git
synced 2025-05-31 00:01:57 -04:00
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.
This commit is contained in:
parent
924d6ed437
commit
1f44a313bd
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/backend/access/common/reloptions.c,v 1.33 2010/02/26 02:00:32 momjian Exp $
|
* $PostgreSQL: pgsql/src/backend/access/common/reloptions.c,v 1.34 2010/03/11 21:47:19 tgl Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -244,8 +244,9 @@ static void
|
|||||||
initialize_reloptions(void)
|
initialize_reloptions(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
int j = 0;
|
int j;
|
||||||
|
|
||||||
|
j = 0;
|
||||||
for (i = 0; boolRelOpts[i].gen.name; i++)
|
for (i = 0; boolRelOpts[i].gen.name; i++)
|
||||||
j++;
|
j++;
|
||||||
for (i = 0; intRelOpts[i].gen.name; i++)
|
for (i = 0; intRelOpts[i].gen.name; i++)
|
||||||
@ -302,6 +303,9 @@ initialize_reloptions(void)
|
|||||||
|
|
||||||
/* add a list terminator */
|
/* add a list terminator */
|
||||||
relOpts[j] = NULL;
|
relOpts[j] = NULL;
|
||||||
|
|
||||||
|
/* flag the work is complete */
|
||||||
|
need_initialization = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user