MDEV-34976 Server crash report broken if Galera is not loaded

The crash report terminates prematurely when Galera library was
not loaded.

As a fix, check whether the provider is loaded before shutting down
Galera connections.

Signed-off-by: Julius Goryavsky <julius.goryavsky@mariadb.com>
This commit is contained in:
Teemu Ollakka 2024-09-20 18:06:38 +03:00 committed by Julius Goryavsky
parent f7c5182b7c
commit b2429e2025

View File

@ -87,7 +87,7 @@ void Wsrep_server_state::destroy()
void Wsrep_server_state::handle_fatal_signal()
{
if (m_instance)
if (m_instance && m_instance->is_provider_loaded())
{
/* Galera background threads are still running and the logging may be
relatively verbose in case of networking error. Silence all wsrep