mirror of
https://github.com/deepseek-ai/3FS
synced 2025-06-26 18:16:45 +00:00
21 lines
568 B
C++
21 lines
568 B
C++
#pragma once
|
|
|
|
#include "core/utils/ServiceOperation.h"
|
|
#include "fbs/mgmtd/Rpc.h"
|
|
#include "mgmtd/service/MgmtdState.h"
|
|
|
|
namespace hf3fs::mgmtd {
|
|
struct GetConfigOperation : core::ServiceOperationWithMetric<"MgmtdService", "GetConfig", "op"> {
|
|
GetConfigReq req;
|
|
|
|
explicit GetConfigOperation(GetConfigReq r)
|
|
: req(std::move(r)) {}
|
|
|
|
String toStringImpl() const final {
|
|
return fmt::format("GetConfig {}@{}", magic_enum::enum_name(req.nodeType), req.configVersion);
|
|
}
|
|
|
|
CoTryTask<GetConfigRsp> handle(MgmtdState &state);
|
|
};
|
|
} // namespace hf3fs::mgmtd
|