New upstream version 8.1.0
This commit is contained in:
22
storage/source/net/message/control/AckMsgEx.cpp
Normal file
22
storage/source/net/message/control/AckMsgEx.cpp
Normal file
@@ -0,0 +1,22 @@
|
||||
#include <program/Program.h>
|
||||
#include "AckMsgEx.h"
|
||||
|
||||
bool AckMsgEx::processIncoming(ResponseContext& ctx)
|
||||
{
|
||||
LogContext log("Ack incoming");
|
||||
|
||||
LOG_DEBUG_CONTEXT(log, 5, std::string("Value: ") + getValue() );
|
||||
|
||||
AcknowledgmentStore* ackStore = Program::getApp()->getAckStore();
|
||||
ackStore->receivedAck(getValue() );
|
||||
|
||||
// note: this message does not require a response
|
||||
|
||||
App* app = Program::getApp();
|
||||
app->getNodeOpStats()->updateNodeOp(ctx.getSocket()->getPeerIP(), StorageOpCounter_ACK,
|
||||
getMsgHeaderUserID() );
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user