some more correctioons
This commit is contained in:
parent
b81b458ba6
commit
d5d968a393
@ -105,18 +105,18 @@ ReturnValue_t LocalDataPoolManager::generateHousekeepingPacket(sid_t sid) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// and now we set a HK message and send it the HK packet destination.
|
// and now we set a HK message and send it the HK packet destination.
|
||||||
//HousekeepingMessage hkMessage;
|
CommandMessage hkMessage;
|
||||||
// hkMessage.setHkReportMessage(sid, storeId);
|
HousekeepingMessage::setHkReportMessage(&hkMessage, sid, storeId);
|
||||||
// if(hkQueue == nullptr) {
|
if(hkQueue == nullptr) {
|
||||||
// return QUEUE_NOT_SET;
|
return QUEUE_NOT_SET;
|
||||||
// }
|
}
|
||||||
//
|
|
||||||
// if(currentHkPacketDestination != MessageQueueIF::NO_QUEUE) {
|
if(currentHkPacketDestination != MessageQueueIF::NO_QUEUE) {
|
||||||
// result = hkQueue->sendMessage(currentHkPacketDestination, &hkMessage);
|
result = hkQueue->sendMessage(currentHkPacketDestination, &hkMessage);
|
||||||
// }
|
}
|
||||||
// else {
|
else {
|
||||||
// result = hkQueue->sendToDefault(&hkMessage);
|
result = hkQueue->sendToDefault(&hkMessage);
|
||||||
// }
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
@ -90,11 +90,9 @@ void CommandMessage::setReplyRejected(ReturnValue_t reason,
|
|||||||
|
|
||||||
ReturnValue_t CommandMessage::getReplyRejectedReason(
|
ReturnValue_t CommandMessage::getReplyRejectedReason(
|
||||||
Command_t *initialCommand) const {
|
Command_t *initialCommand) const {
|
||||||
ReturnValue_t reason = HasReturnvaluesIF::RETURN_FAILED;
|
ReturnValue_t reason = getParameter();
|
||||||
std::memcpy(&reason, getData(), sizeof(reason));
|
|
||||||
if(initialCommand != nullptr) {
|
if(initialCommand != nullptr) {
|
||||||
std::memcpy(initialCommand, getData() + sizeof(reason),
|
*initialCommand = getParameter2();
|
||||||
sizeof(Command_t));
|
|
||||||
}
|
}
|
||||||
return reason;
|
return reason;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user