1
0
Fork 0
mirror of https://github.com/dragonflydb/dragonfly.git synced 2024-12-14 11:58:02 +00:00

fix(server): Fix shutdown order (#675)

This commit is contained in:
Vladislav 2023-01-14 10:01:35 +03:00 committed by GitHub
parent 50e14db6c7
commit 9de347b66c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -498,14 +498,14 @@ void Service::Shutdown() {
// rejected
pp_.AwaitFiberOnAll([](ProactorBase* pb) { ServerState::tlocal()->Shutdown(); });
engine_varz.reset();
request_latency_usec.Shutdown();
// to shutdown all the runtime components that depend on EngineShard.
server_family_.Shutdown();
StringFamily::Shutdown();
GenericFamily::Shutdown();
engine_varz.reset();
request_latency_usec.Shutdown();
shard_set->Shutdown();
// wait for all the pending callbacks to stop.