Branch: Tag:

2000-09-05

2000-09-05 11:50:14 by Per Hedbor <ph@opera.com>

Handle the case when there is no datacache

Rev: server/base_server/configuration.pike:1.362

1:   // A vitual server's main configuration   // Copyright © 1996 - 2000, Roxen IS.    - constant cvs_version = "$Id: configuration.pike,v 1.361 2000/09/05 08:55:03 per Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.362 2000/09/05 11:50:14 per Exp $";   constant is_configuration = 1;   #include <module.h>   #include <module_constants.h>
2106:    int module_type;       -  datacache->flush(); +  if( datacache ) datacache->flush();       if( sscanf(modname, "%s#%d", modname, id ) != 2 )    while( modules[ modname ] && modules[ modname ][ id ] )
2485:    int id, pr;    sscanf(modname, "%s#%d", modname, id );    -  datacache->flush(); +  if( datacache ) datacache->flush();       ModuleInfo moduleinfo = roxen->find_module( modname );    mapping module = modules[ modname ];