Browse code

- relax db_init BUG check (allow db init from fixup functions)

(SER-227 related)

Andrei Pelinescu-Onciul authored on 23/02/2007 21:03:38
Showing 2 changed files
... ...
@@ -146,6 +146,7 @@ extern int process_no;
146 146
 extern int reply_to_via;
147 147
 
148 148
 extern int is_main;
149
+extern int fixup_complete;
149 150
 
150 151
 /* debugging level for dumping memory status */
151 152
 extern int memlog;
... ...
@@ -422,6 +422,7 @@ extern int yyparse();
422 422
 
423 423
 
424 424
 int is_main=1; /* flag = is this the  "main" process? */
425
+int fixup_complete=0; /* flag = is the fixup complete ? */
425 426
 
426 427
 char* pid_file = 0; /* filename as asked by use */
427 428
 char* pgid_file = 0;
... ...
@@ -1591,6 +1592,7 @@ try_again:
1591 1591
 						r);
1592 1592
 		goto error;
1593 1593
 	};
1594
+	fixup_complete=1;
1594 1595
 
1595 1596
 #ifdef STATS
1596 1597
 	if (init_stats(  dont_fork ? 1 : children_no  )==-1) goto error;