diff options
| author | Maxim Kovalev <[email protected]> | 2024-12-20 18:31:08 +0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-12-20 15:31:08 +0000 |
| commit | d2e4bb83f1c9678aacc2b39ab18c68294ffc1bc4 (patch) | |
| tree | 45d05f9e7c8d67fba8b4f579553bc58c91e12126 | |
| parent | 33d586dcf1a53a87e8ff1dfd0b0fc13e250279b0 (diff) | |
Mon: Fix Start call if AppData is not set (#12844)
| -rw-r--r-- | ydb/core/mon/mon.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ydb/core/mon/mon.cpp b/ydb/core/mon/mon.cpp index b9844aae397..2ce0c25b174 100644 --- a/ydb/core/mon/mon.cpp +++ b/ydb/core/mon/mon.cpp @@ -965,18 +965,19 @@ std::future<void> TMon::Start(TActorSystem* actorSystem) { NLwTraceMonPage::RegisterPages(IndexMonPage.Get()); NLwTraceMonPage::ProbeRegistry().AddProbesList(LWTRACE_GET_PROBES(ACTORLIB_PROVIDER)); NLwTraceMonPage::ProbeRegistry().AddProbesList(LWTRACE_GET_PROBES(MONITORING_PROVIDER)); + ui32 executorPool = ActorSystem->AppData<NKikimr::TAppData>() ? ActorSystem->AppData<NKikimr::TAppData>()->UserPoolId : 0; HttpProxyActorId = ActorSystem->Register( NHttp::CreateHttpProxy(), TMailboxType::ReadAsFilled, - ActorSystem->AppData<NKikimr::TAppData>()->UserPoolId); + executorPool); HttpMonServiceActorId = ActorSystem->Register( new THttpMonServiceLegacyIndex(IndexMonPage, Config.RedirectMainPageTo), TMailboxType::ReadAsFilled, - ActorSystem->AppData<NKikimr::TAppData>()->UserPoolId); + executorPool); auto nodeProxyActorId = ActorSystem->Register( new THttpMonServiceNodeProxy(HttpProxyActorId), TMailboxType::ReadAsFilled, - ActorSystem->AppData<NKikimr::TAppData>()->UserPoolId); + executorPool); NodeProxyServiceActorId = MakeNodeProxyId(ActorSystem->NodeId); ActorSystem->RegisterLocalService(NodeProxyServiceActorId, nodeProxyActorId); |
