Files
3FS/src/mgmtd/ops/SetChainTableOperation.h
2025-02-27 21:53:53 +08:00

19 lines
549 B
C++

#pragma once
#include "core/utils/ServiceOperation.h"
#include "fbs/mgmtd/Rpc.h"
#include "mgmtd/service/MgmtdState.h"
namespace hf3fs::mgmtd {
struct SetChainTableOperation : core::ServiceOperationWithMetric<"MgmtdService", "SetChainTable", "op"> {
SetChainTableReq req;
explicit SetChainTableOperation(SetChainTableReq r)
: req(std::move(r)) {}
String toStringImpl() const final { return fmt::format("SetChainTable {}", req.chainTableId); }
CoTryTask<SetChainTableRsp> handle(MgmtdState &state);
};
} // namespace hf3fs::mgmtd