Branch: Tag:

2000-02-16

2000-02-16 11:12:10 by Per Hedbor <ph@opera.com>

Do not init if init is already called. Paranoia only

Rev: server/base_server/configuration.pike:1.261

3:    * (C) 1996 - 2000 Idonex AB.    */    - constant cvs_version = "$Id: configuration.pike,v 1.260 2000/02/16 07:10:15 per Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.261 2000/02/16 11:12:10 per Exp $";   constant is_configuration = 1;   #include <module.h>   #include <roxen.h>
2836:      void enable_all_modules()   { +  if( inited ) return; // already done    inited = 1;    -  +  int start_time = gethrtime(); +  report_debug("\nEnabling all modules for "+query_name()+"... \n"); +     add_parse_module( (object)this_object() );    enabled_modules = retrieve("EnabledModules", this_object());    object ec = roxenloader.LowErrorContainer();
2849:    parse_log_formats();    init_log_file();    -  int start_time = gethrtime(); -  -  report_debug("\nEnabling all modules for "+query_name()+"... \n"); -  +     // Always enable the user database module first.    if(search(modules_to_process, "userdb#0")>-1)    modules_to_process = (({"userdb#0"})+(modules_to_process-({"userdb#0"})));