Changeset 15625 for gsdl/trunk/src/w32server
- Timestamp:
- 2008-05-22T11:26:01+12:00 (16 years ago)
- Location:
- gsdl/trunk/src/w32server
- Files:
-
- 3 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)) { -
gsdl/trunk/src/w32server/settings.cpp
r11319 r15625 47 47 text_t gsdl_enterlib; 48 48 text_t gsdl_gsdlhome; 49 text_t gsdl_ gdbmhome;49 text_t gsdl_dbhome; 50 50 text_t gsdl_collections; 51 51 colinfo_tmap gsdl_collectinfo; … … 300 300 write_ini_line(fout, "enterlib", gsdl_enterlib); 301 301 write_ini_line(fout, "gsdlhome", gsdl_gsdlhome); 302 write_ini_line(fout, "gdbmhome", gsdl_ gdbmhome);302 write_ini_line(fout, "gdbmhome", gsdl_dbhome); 303 303 304 304 write_ini_line(fout, "logfilename", gsdl_log_name); … … 321 321 if (!(*here).second.gsdl_gsdlhome.empty()) 322 322 write_ini_line(fout, "gsdlhome", (*here).second.gsdl_gsdlhome); 323 if (!(*here).second.gsdl_ gdbmhome.empty())324 write_ini_line(fout, "gdbmhome", (*here).second.gsdl_ gdbmhome);323 if (!(*here).second.gsdl_dbhome.empty()) 324 write_ini_line(fout, "gdbmhome", (*here).second.gsdl_dbhome); 325 325 326 326 ++here; … … 385 385 gsdl_enterlib = "/gsdl"; 386 386 gsdl_gsdlhome = data_location; 387 gsdl_ gdbmhome = data_location;387 gsdl_dbhome = data_location; 388 388 389 389 // debug settings … … 475 475 gsdl_collections = value; 476 476 477 // gsdlhome must occur in file before gdbmhome477 // gsdlhome must occur in file before dbhome 478 478 } else if (key == "gsdlhome") { 479 479 gsdl_gsdlhome = value; 480 gsdl_ gdbmhome = value;480 gsdl_dbhome = value; 481 481 482 482 } else if (key == "gdbmhome") { 483 gsdl_ gdbmhome = value;483 gsdl_dbhome = value; 484 484 } 485 485 } else { 486 486 487 // gsdlhome must occur in file before gdbmhome487 // gsdlhome must occur in file before dbhome 488 488 if (key == "gsdlhome") { 489 489 gsdl_collectinfo[section].gsdl_gsdlhome = value; 490 gsdl_collectinfo[section].gsdl_ gdbmhome = value;490 gsdl_collectinfo[section].gsdl_dbhome = value; 491 491 } else if (key == "gdbmhome") { 492 gsdl_collectinfo[section].gsdl_ gdbmhome = value;492 gsdl_collectinfo[section].gsdl_dbhome = value; 493 493 } 494 494 } … … 502 502 // extra slashes at the end 503 503 remove_end_slashes (gsdl_gsdlhome); 504 remove_end_slashes (gsdl_ gdbmhome);504 remove_end_slashes (gsdl_dbhome); 505 505 colinfo_tmap::iterator here = gsdl_collectinfo.begin(); 506 506 colinfo_tmap::iterator end = gsdl_collectinfo.end(); 507 507 while (here != end) { 508 508 remove_end_slashes ((*here).second.gsdl_gsdlhome); 509 remove_end_slashes ((*here).second.gsdl_ gdbmhome);509 remove_end_slashes ((*here).second.gsdl_dbhome); 510 510 ++here; 511 511 } -
gsdl/trunk/src/w32server/settings.h
r11319 r15625 48 48 extern text_t gsdl_enterlib; 49 49 extern text_t gsdl_gsdlhome; 50 extern text_t gsdl_ gdbmhome;50 extern text_t gsdl_dbhome; 51 51 extern text_t gsdl_collections; 52 52 extern colinfo_tmap gsdl_collectinfo;
Note:
See TracChangeset
for help on using the changeset viewer.