Changeset 2404 for XIOS3/trunk/src/manager/services_manager.cpp
- Timestamp:
- 09/19/22 10:38:09 (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS3/trunk/src/manager/services_manager.cpp
r2403 r2404 76 76 } 77 77 78 bool CServicesManager::createServicesOnto(const std::string& poolId, const std::string& serviceId, const std::string& OnServiceId, bool wait)78 bool CServicesManager::createServicesOnto(const std::string& poolId, const std::string& serviceId, int type, const std::string& OnServiceId, bool wait) 79 79 { 80 80 … … 96 96 { 97 97 info(40)<<"CServicesManager : create service on other, notification to leader "<<leader<<", serviceId : "<<serviceId<<", service onto : "<<OnServiceId<<endl ; 98 createServicesOntoNotify(leader, serviceId, OnServiceId) ;98 createServicesOntoNotify(leader, serviceId, type, OnServiceId) ; 99 99 return true ; 100 100 } … … 110 110 111 111 112 void CServicesManager::createServicesOntoNotify(int rank, const string& serviceId, const string& OnServiceId)112 void CServicesManager::createServicesOntoNotify(int rank, const string& serviceId, int type, const string& OnServiceId) 113 113 { 114 114 notifyType_=NOTIFY_CREATE_SERVICE_ONTO ; 115 notifyCreateServiceOnto_=make_tuple(serviceId, OnServiceId) ;115 notifyCreateServiceOnto_=make_tuple(serviceId, type, OnServiceId) ; 116 116 sendNotification(rank) ; 117 117 } … … 160 160 void CServicesManager::createServiceOnto(void) 161 161 { 162 auto& arg=notifyCreateService _ ;163 //CServer::getServersRessource()->getPoolRessource()->createService(get<0>(arg), get<1>(arg), get<2>(arg), get<3>(arg)) ;162 auto& arg=notifyCreateServiceOnto_ ; 163 CServer::getServersRessource()->getPoolRessource()->createServiceOnto(get<0>(arg), get<1>(arg), get<2>(arg)) ; 164 164 } 165 165 … … 177 177 { 178 178 auto& arg=notifyCreateServiceOnto_ ; 179 buffer << notifyType_<< get<0>(arg) << get<1>(arg) ;179 buffer << notifyType_<< get<0>(arg) << get<1>(arg) << get<2>(arg) ; 180 180 } 181 181 } … … 195 195 { 196 196 auto& arg=notifyCreateServiceOnto_ ; 197 buffer >> get<0>(arg) >> get<1>(arg) ;197 buffer >> get<0>(arg) >> get<1>(arg) >> get<2>(arg) ; 198 198 } 199 199 }
Note: See TracChangeset
for help on using the changeset viewer.