| 1098 | } |
| 1099 | |
| 1100 | void |
| 1101 | ManagerImpl::processDelete(const OwnerUpdate* sample, const DDS::SampleInfo* /* info */) |
| 1102 | { |
| 1103 | if (OpenDDS::DCPS::DCPS_debug_level > 9) { |
| 1104 | OpenDDS::DCPS::RepoIdConverter converter(sample->participant); |
| 1105 | ACE_DEBUG((LM_DEBUG, |
| 1106 | ACE_TEXT("(%P|%t) Federator::ManagerImpl::processDelete( OwnerUpdate): ") |
| 1107 | ACE_TEXT("repo %d - [ domain %d/ participant %C/ sender %d/ owner %d ]\n"), |
| 1108 | this->id().id(), |
| 1109 | sample->domain, |
| 1110 | std::string(converter).c_str(), |
| 1111 | sample->sender, |
| 1112 | sample->owner)); |
| 1113 | } |
| 1114 | |
| 1115 | // We could generate an error message here. Instead we let action be irrelevant. |
| 1116 | if (false == this->info_->changeOwnership(sample->domain, |
| 1117 | sample->participant, |
| 1118 | sample->sender, |
| 1119 | sample->owner)) { |
| 1120 | { |
| 1121 | ACE_GUARD(ACE_Thread_Mutex, |
| 1122 | guard, |
| 1123 | this->deferred_lock_); |
| 1124 | this->deferredOwnerships_.push_back(*sample); |
| 1125 | } |
| 1126 | ACE_DEBUG((LM_DEBUG, |
| 1127 | ACE_TEXT("(%P|%t) Federator::ManagerImpl::processDelete( OwnerUpdate): ") |
| 1128 | ACE_TEXT("deferred update.\n"))); |
| 1129 | } |
| 1130 | } |
| 1131 | |
| 1132 | void |
| 1133 | ManagerImpl::processDelete(const PublicationUpdate* sample, const DDS::SampleInfo* /* info */) |
no test coverage detected