Changeset 19788

Show
Ignore:
Timestamp:
10.06.2009 13:11:20 (10 years ago)
Author:
kjdon
Message:

moved the text for existence of build.cfg out of w32server/cgiwrapper and into colserver/collectset. This was preventing collect groups from being loaded up as they are not built. Now, unbuilt collections will not be loaded up for linux either

Location:
gsdl/trunk/runtime-src/src
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/runtime-src/src/colservr/collectset.cpp

    r19365 r19788  
    241241 
    242242  text_t build_cfg = filename_cat(collecthome, collection, "index", "build.cfg"); 
     243  if (!file_exists (build_cfg)) { 
     244    // don't add in unbuilt collections 
     245    return; 
     246  } 
    243247  char *build_cfgc = build_cfg.getcstr(); 
    244248  ifstream confin(build_cfgc); 
  • gsdl/trunk/runtime-src/src/w32server/cgiwrapper.cpp

    r19728 r19788  
    466466      while (colhere != colend) { 
    467467     
    468     text_t build_cfg = filename_cat (gsdl_dbhome,"collect", 
    469                      *colhere, "index", "build.cfg"); 
    470     if (file_exists (build_cfg)) { 
     468    //text_t build_cfg = filename_cat (gsdl_dbhome,"collect", 
     469    //           *colhere, "index", "build.cfg"); 
     470      //if (file_exists (build_cfg)) { 
    471471      collections.insert (*colhere); 
    472472       
     
    476476      tmp.gsdl_dbhome = gsdl_dbhome; 
    477477      translated_collectinfo[*colhere] = tmp; 
    478     } 
     478      //} 
    479479    ++colhere; 
    480480      }