beegfs/meta/source/net/message/fsck/RetrieveInodesMsgEx.cpp
2025-08-10 01:34:16 +02:00

26 lines
750 B
C++

#include "RetrieveInodesMsgEx.h"
#include <program/Program.h>
bool RetrieveInodesMsgEx::processIncoming(ResponseContext& ctx)
{
LogContext log("Incoming RetrieveInodesMsg");
MetaStore *metaStore = Program::getApp()->getMetaStore();
unsigned hashDirNum = getHashDirNum();
unsigned maxOutInodes = getMaxOutInodes();
int64_t lastOffset = getLastOffset();
int64_t newOffset;
FsckFileInodeList fileInodesOutgoing;
FsckDirInodeList dirInodesOutgoing;
metaStore->getAllInodesIncremental(hashDirNum, lastOffset, maxOutInodes, &dirInodesOutgoing,
&fileInodesOutgoing, &newOffset, getIsBuddyMirrored());
ctx.sendResponse(RetrieveInodesRespMsg(&fileInodesOutgoing, &dirInodesOutgoing, newOffset) );
return true;
}