mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-31 20:16:43 +00:00
database We're currently stopping raft_gr before shutting the database down, but we fail to do that if anything goes wrong before that, e.g. if distributed_loader::init_non_system_keyspaces fails. This change splits drain_on_shutdown out of stop() to stop the raft groups before the database is stopped and does the rest in a deferred_stop placed right after the rafr_gr registry is strated. Signed-off-by: Benny Halevy <bhalevy@scylladb.com>