mirror of
https://github.com/deepseek-ai/3FS
synced 2025-06-26 18:16:45 +00:00
Initial commit
This commit is contained in:
18
src/mgmtd/ops/SetChainsOperation.h
Normal file
18
src/mgmtd/ops/SetChainsOperation.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#pragma once
|
||||
|
||||
#include "core/utils/ServiceOperation.h"
|
||||
#include "fbs/mgmtd/Rpc.h"
|
||||
#include "mgmtd/service/MgmtdState.h"
|
||||
|
||||
namespace hf3fs::mgmtd {
|
||||
struct SetChainsOperation : core::ServiceOperationWithMetric<"MgmtdService", "SetChains", "op"> {
|
||||
SetChainsReq req;
|
||||
|
||||
explicit SetChainsOperation(SetChainsReq r)
|
||||
: req(std::move(r)) {}
|
||||
|
||||
String toStringImpl() const final { return "SetChains"; }
|
||||
|
||||
CoTryTask<SetChainsRsp> handle(MgmtdState &state);
|
||||
};
|
||||
} // namespace hf3fs::mgmtd
|
||||
Reference in New Issue
Block a user