system_keyspace: call shutdown from stop

and use that to replace the explicit shutdown when stopped
in cql_test_env.

Signed-off-by: Benny Halevy <bhalevy@scylladb.com>
This commit is contained in:
Benny Halevy
2025-02-28 11:22:36 +02:00
parent 102aec64d5
commit 7a624e3df8
3 changed files with 5 additions and 1 deletions

View File

@@ -699,7 +699,6 @@ private:
_sys_ks.start(std::ref(_qp), std::ref(_db)).get();
auto stop_sys_kd = defer_verbose_shutdown("system keyspace", [this] {
_sys_ks.invoke_on_all(&db::system_keyspace::shutdown).get();
_sys_ks.stop().get();
});