- Timestamp:
- 02/19/12 10:21:43 (13 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/DimServiceInfoList.cc
r12349 r12907 121 121 void DimServiceInfoList::RemoveServer(const string s) 122 122 { 123 RemoveAllServices(s); 124 123 125 const ServiceInfoList::iterator v = fServiceInfoList.find(s); 124 126 if (v==fServiceInfoList.end()) 127 return; 128 /* 125 129 { 126 130 stringstream err; 127 131 err << "DimServiceInfoList: Server '" << s << "' not in list as it ought to be."; 128 132 throw runtime_error(err.str()); 129 } 130 131 RemoveAllServices(s); 133 }*/ 132 134 133 135 // Remove the server from the server list -
trunk/FACT++/src/datalogger.cc
r12890 r12907 471 471 if (list.find(service) != list.end()) 472 472 { 473 Error("Service " + server + "/" + service + " is already in the dataLogger's list. ignoring itsupdate.");473 Error("Service " + server + "/" + service + " is already in the dataLogger's list... ignoring update."); 474 474 return; 475 475 } … … 502 502 if (fServiceSubscriptions.find(server) == fServiceSubscriptions.end()) 503 503 { 504 Error("Server " + server + " not found while removing service " + service);505 return;504 Error("Request to remove service "+service+" from server "+server+", but service not found."); 505 return; 506 506 } 507 507 … … 532 532 void DataLogger::RemoveAllServices(const string& server) 533 533 { 534 if (fServiceSubscriptions.find(server)==fServiceSubscriptions.end()) 535 { 536 Warn("Request to remove all services, but corresponding server " + server + " not found."); 537 return; 538 } 539 534 540 fNumSubAndFitsData.numSubscriptions -= fServiceSubscriptions[server].size(); 541 535 542 fServiceSubscriptions[server].clear(); 536 543 fServiceSubscriptions.erase(server); 544 537 545 if (server == "FAD_CONTROL") 538 546 fRunNumberService = NULL; 547 539 548 if (fDebugIsOn) 540 {541 549 Debug("Removed all subscriptions to " + server + "/"); 542 }543 550 } 544 551
Note:
See TracChangeset
for help on using the changeset viewer.