Changeset 4340
- Timestamp:
- 2003-05-27T11:39:16+12:00 (21 years ago)
- Location:
- trunk/gsdl/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/colservr/collectset.cpp
r2677 r4340 220 220 void collectset::add_collection (const text_t &collection, void *recpt, 221 221 const text_t &gsdlhome, const text_t &gdbmhome) { 222 223 // if an old collection server exists for this collection we should 224 // delete it first 225 collectservermapclass::iterator here = cservers.begin(); 226 collectservermapclass::iterator end = cservers.end(); 227 while (here != end) { 228 if ((*here).second.c != NULL && (*here).first == collection) { 229 delete (*here).second.c; 230 cservers.erase (here); 231 break; 232 } 233 here ++; 234 } 222 235 223 236 // read config file to see if built with mg or mgpp … … 314 327 void collectset::remove_collection (const text_t &collection, ostream &logout) { 315 328 329 // do nothing if no collection server exists for this collection 330 if (cservers.getcollectserver(collection) == NULL) return; 331 316 332 // first unload any cached mg databases - we may need to do something 317 333 // similar to this for mgpp too -
trunk/gsdl/src/recpt/configaction.cpp
r4290 r4340 52 52 arg_ainfo.multiplechar = true; 53 53 arg_ainfo.defaultstatus = cgiarginfo::weak; 54 arg_ainfo.argdefault = " configure-all";54 arg_ainfo.argdefault = ""; 55 55 arg_ainfo.savedarginfo = cgiarginfo::mustnot; 56 56 argsinfo.addarginfo (NULL, arg_ainfo); … … 91 91 // add it to the null protocol. 92 92 void configaction::create_colservr (const text_t &collection, ostream &logout) { 93 94 // just in case we're adding a collection that already exists 95 recpt->uncache_collection(collection); 93 96 94 97 recptprotolistclass *protos = recpt->get_recptprotolist_ptr();
Note:
See TracChangeset
for help on using the changeset viewer.