New upstream version 8.1.0
This commit is contained in:
24
meta/source/net/message/control/AckMsgEx.cpp
Normal file
24
meta/source/net/message/control/AckMsgEx.cpp
Normal file
@@ -0,0 +1,24 @@
|
||||
#include <program/Program.h>
|
||||
#include "AckMsgEx.h"
|
||||
|
||||
bool AckMsgEx::processIncoming(ResponseContext& ctx)
|
||||
{
|
||||
#ifdef BEEGFS_DEBUG
|
||||
const char* logContext = "Ack incoming";
|
||||
#endif //BEEGFS_DEBUG
|
||||
|
||||
LOG_DEBUG(logContext, 5, std::string("Value: ") + getValue() );
|
||||
|
||||
AcknowledgmentStore* ackStore = Program::getApp()->getAckStore();
|
||||
ackStore->receivedAck(getValue() );
|
||||
|
||||
App* app = Program::getApp();
|
||||
app->getNodeOpStats()->updateNodeOp(ctx.getSocket()->getPeerIP(), MetaOpCounter_ACK,
|
||||
getMsgHeaderUserID() );
|
||||
|
||||
// note: this message does not require a response
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
13
meta/source/net/message/control/AckMsgEx.h
Normal file
13
meta/source/net/message/control/AckMsgEx.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#pragma once
|
||||
|
||||
#include <common/net/message/control/AckMsg.h>
|
||||
|
||||
// see class AcknowledgeableMsg (fhgfs_common) for a short description
|
||||
|
||||
class AckMsgEx : public AckMsg
|
||||
{
|
||||
public:
|
||||
virtual bool processIncoming(ResponseContext& ctx);
|
||||
};
|
||||
|
||||
|
||||
21
meta/source/net/message/control/SetChannelDirectMsgEx.cpp
Normal file
21
meta/source/net/message/control/SetChannelDirectMsgEx.cpp
Normal file
@@ -0,0 +1,21 @@
|
||||
#include <program/Program.h>
|
||||
#include "SetChannelDirectMsgEx.h"
|
||||
|
||||
bool SetChannelDirectMsgEx::processIncoming(ResponseContext& ctx)
|
||||
{
|
||||
#ifdef BEEGFS_DEBUG
|
||||
const char* logContext = "SetChannelDirect incoming";
|
||||
|
||||
LOG_DEBUG(logContext, 5, std::string("Value: ") + StringTk::intToStr(getValue() ) );
|
||||
#endif // BEEGFS_DEBUG
|
||||
|
||||
ctx.getSocket()->setIsDirect(getValue() );
|
||||
|
||||
App* app = Program::getApp();
|
||||
app->getNodeOpStats()->updateNodeOp(ctx.getSocket()->getPeerIP(), MetaOpCounter_SETCHANNELDIRECT,
|
||||
getMsgHeaderUserID() );
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
11
meta/source/net/message/control/SetChannelDirectMsgEx.h
Normal file
11
meta/source/net/message/control/SetChannelDirectMsgEx.h
Normal file
@@ -0,0 +1,11 @@
|
||||
#pragma once
|
||||
|
||||
#include <common/net/message/control/SetChannelDirectMsg.h>
|
||||
|
||||
class SetChannelDirectMsgEx : public SetChannelDirectMsg
|
||||
{
|
||||
public:
|
||||
virtual bool processIncoming(ResponseContext& ctx);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user