beegfs/storage/source/net/message/control/SetChannelDirectMsgEx.cpp
2025-08-10 01:34:16 +02:00

20 lines
507 B
C++

#include <program/Program.h>
#include "SetChannelDirectMsgEx.h"
bool SetChannelDirectMsgEx::processIncoming(ResponseContext& ctx)
{
LogContext log("SetChannelDirect incoming");
LOG_DEBUG_CONTEXT(log, 5, std::string("Value: ") + StringTk::intToStr(getValue() ) );
ctx.getSocket()->setIsDirect(getValue() );
App* app = Program::getApp();
app->getNodeOpStats()->updateNodeOp(ctx.getSocket()->getPeerIP(),
StorageOpCounter_SETCHANNELDIRECT, getMsgHeaderUserID() );
return true;
}