Skip to content

Commit 1f44a31

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 parent 924d6ed commit 1f44a31

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
int i;
247-
int j = 0;
247+
int j;
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy