Skip to content

Commit

Permalink
fix use after free on follower deletion (#10863)
Browse files Browse the repository at this point in the history
  • Loading branch information
vporyadke authored Oct 24, 2024
1 parent a42542e commit 77e23b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ydb/core/mind/hive/hive_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,12 +257,12 @@ void THive::ExecuteProcessBootQueue(NIceDb::TNiceDb& db, TSideEffects& sideEffec
sideEffects.Send(actorToNotify, new TEvPrivate::TEvRestartComplete(tablet->GetFullTabletId(), "boot delay"));
}
tablet->ActorsToNotifyOnRestart.clear();
tablet->InWaitQueue = true;
if (tablet->IsFollower()) {
TLeaderTabletInfo& leader = tablet->GetLeader();
UpdateTabletFollowersNumber(leader, db, sideEffects);
UpdateTabletFollowersNumber(leader, db, sideEffects); // this may delete tablet
}
BootQueue.AddToWaitQueue(record); // waiting for new node
tablet->InWaitQueue = true;
continue;
}
}
Expand Down

0 comments on commit 77e23b8

Please sign in to comment.