Changeset 15625 for gsdl/trunk/src/w32server/cgiwrapper.cpp
- Timestamp:
- 2008-05-22T11:26:01+12:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/src/w32server/cgiwrapper.cpp
r15412 r15625 380 380 // required to create a collection specific receptionist 381 381 text_t collection = ""; 382 text_tset gdbmhomes;382 text_tset dbhomes; 383 383 text_tset collections; 384 384 … … 404 404 // collection specific receptionist - one collection, one gsdlhome 405 405 collections.insert (collection); 406 gdbmhomes.insert (gsdl_gdbmhome);406 dbhomes.insert (gsdl_dbhome); 407 407 collectioninfo_t tmp; 408 408 tmp.gsdl_gsdlhome = gsdl_gsdlhome; 409 tmp.gsdl_ gdbmhome = gsdl_gdbmhome;409 tmp.gsdl_dbhome = gsdl_dbhome; 410 410 translated_collectinfo[collection] = tmp; 411 411 … … 420 420 colinfo_tmap::const_iterator end_info = gsdl_collectinfo.end(); 421 421 while (this_info != end_info) { 422 if ( gdbmhomes.find ((*this_info).second.gsdl_gdbmhome) == gdbmhomes.end()) {422 if (dbhomes.find ((*this_info).second.gsdl_dbhome) == dbhomes.end()) { 423 423 these_collections.erase (these_collections.begin(), these_collections.end()); 424 424 read_dir (filename_cat ((*this_info).second.gsdl_gsdlhome, "collect"), these_collections); … … 444 444 ++colhere; 445 445 } 446 gdbmhomes.insert ((*this_info).second.gsdl_gdbmhome);446 dbhomes.insert ((*this_info).second.gsdl_dbhome); 447 447 } 448 448 ++this_info; 449 449 } 450 450 451 // then if necessary the main gdbmhome (this should only happen if the452 // gsdl.ini is a little screwed up and no volume gdbmhomes occurred)453 if ( gdbmhomes.find (gsdl_gdbmhome) == gdbmhomes.end()) {451 // then if necessary the main dbhome (this should only happen if the 452 // gsdl.ini is a little screwed up and no volume dbhomes occurred) 453 if (dbhomes.find (gsdl_dbhome) == dbhomes.end()) { 454 454 these_collections.erase (these_collections.begin(), these_collections.end()); 455 read_dir (filename_cat (gsdl_ gdbmhome, "collect"), these_collections);455 read_dir (filename_cat (gsdl_dbhome, "collect"), these_collections); 456 456 colhere = these_collections.begin(); 457 457 colend = these_collections.end(); … … 460 460 collectioninfo_t tmp; 461 461 tmp.gsdl_gsdlhome = gsdl_gsdlhome; 462 tmp.gsdl_ gdbmhome = gsdl_gdbmhome;462 tmp.gsdl_dbhome = gsdl_dbhome; 463 463 translated_collectinfo[*colhere] = tmp; 464 464 ++colhere; 465 465 } 466 gdbmhomes.insert (gsdl_gdbmhome);466 dbhomes.insert (gsdl_dbhome); 467 467 } 468 468 } … … 481 481 // create collection server and add to null protocol 482 482 text_t this_gsdlhome = gsdl_gsdlhome; 483 text_t this_ gdbmhome = gsdl_gdbmhome;483 text_t this_dbhome = gsdl_dbhome; 484 484 colinfo_tmap::const_iterator it = translated_collectinfo.find (*thiscol); 485 485 assert (it != translated_collectinfo.end()); 486 486 this_gsdlhome = (*it).second.gsdl_gsdlhome; 487 this_ gdbmhome = (*it).second.gsdl_gdbmhome;487 this_dbhome = (*it).second.gsdl_dbhome; 488 488 489 489 cservers->add_collection (*thiscol, this_gsdlhome); … … 615 615 // set defaults 616 616 recpt.configure ("gsdlhome", gsdl_gsdlhome); 617 recpt.configure ("gdbmhome", gsdl_ gdbmhome);617 recpt.configure ("gdbmhome", gsdl_dbhome); 618 618 recpt.configure ("collection", collection); 619 619 … … 629 629 tmpconf.push_back ((*this_info).first); 630 630 tmpconf.push_back ((*this_info).second.gsdl_gsdlhome); 631 tmpconf.push_back ((*this_info).second.gsdl_ gdbmhome);631 tmpconf.push_back ((*this_info).second.gsdl_dbhome); 632 632 recpt.configure ("collectinfo", tmpconf); 633 633 ++this_info; 634 634 } 635 635 636 // read in config files of each gdbmhome (in no particular order)636 // read in config files of each dbhome (in no particular order) 637 637 // those read in last will override those read earlier 638 638 // collections being used together in this way should be 639 639 // careful not to have main.cfg files that might 640 640 // screw with each other. 641 text_tset::const_iterator thome = gdbmhomes.begin();642 text_tset::const_iterator ehome = gdbmhomes.end();641 text_tset::const_iterator thome = dbhomes.begin(); 642 text_tset::const_iterator ehome = dbhomes.end(); 643 643 while (thome != ehome) { 644 644 if (!main_cfg_read (recpt, *thome, collection)) {
Note:
See TracChangeset
for help on using the changeset viewer.