Initial commit

This commit is contained in:
dev
2025-02-27 21:53:53 +08:00
commit 815e55e4c0
1291 changed files with 185445 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
#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