File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -1380,6 +1380,10 @@ TMon::TMon(TConfig config)
1380
1380
{
1381
1381
}
1382
1382
1383
+ TMon::~TMon () {
1384
+ IndexMonPage->ClearPages (); // it's required to avoid loop-reference
1385
+ }
1386
+
1383
1387
std::future<void > TMon::Start (TActorSystem* actorSystem) {
1384
1388
Y_ABORT_UNLESS (actorSystem);
1385
1389
TGuard<TMutex> g (Mutex);
@@ -1456,9 +1460,8 @@ std::future<void> TMon::Start(TActorSystem* actorSystem) {
1456
1460
}
1457
1461
1458
1462
void TMon::Stop () {
1459
- IndexMonPage-> ClearPages (); // it's required to avoid loop-reference
1463
+ TGuard<TMutex> g (Mutex);
1460
1464
if (ActorSystem) {
1461
- TGuard<TMutex> g (Mutex);
1462
1465
for (const auto & [path, actorId] : ActorServices) {
1463
1466
ActorSystem->Send (actorId, new TEvents::TEvPoisonPill);
1464
1467
}
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ class TMon {
42
42
};
43
43
44
44
TMon (TConfig config);
45
- virtual ~TMon () = default ;
45
+ virtual ~TMon ();
46
46
47
47
std::future<void > Start (TActorSystem* actorSystem); // signals when monitoring is ready
48
48
void Stop ();
You can’t perform that action at this time.
0 commit comments