1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-07-28 20:02:00 +03:00

Allow provider initialization even when connection monitor service

is not supported by Galera library.
This commit is contained in:
Jan Lindström
2025-04-10 18:12:49 +03:00
parent e55f01ce1e
commit 7c7c3be62e
3 changed files with 7 additions and 4 deletions

View File

@ -100,7 +100,6 @@ int wsrep::connection_monitor_service_v1_probe(void* dlh)
wsrep_impl::service_probe<deinit_fn>( wsrep_impl::service_probe<deinit_fn>(
dlh, WSREP_CONNECTION_MONITOR_SERVICE_DEINIT_FUNC_V1, "connection monitor service v1")) dlh, WSREP_CONNECTION_MONITOR_SERVICE_DEINIT_FUNC_V1, "connection monitor service v1"))
{ {
wsrep::log_warning() << "Provider does not support connection monitor service v1";
return 1; return 1;
} }

View File

@ -43,7 +43,7 @@ namespace wsrep_impl
} }
else else
{ {
wsrep::log_warning() << "Support for " << service_name wsrep::log_info() << "Support for " << service_name
<< " " << symbol << " " << symbol
<< " not found from provider: " << " not found from provider: "
<< dlerror(); << dlerror();

View File

@ -748,9 +748,13 @@ void wsrep::wsrep_provider_v26::init_services(
{ {
if (init_connection_monitor_service(wsrep_->dlh, services.connection_monitor_service)) if (init_connection_monitor_service(wsrep_->dlh, services.connection_monitor_service))
{ {
throw wsrep::runtime_error("Failed to initialize connection monitor service"); wsrep::log_info() << "Provider does not support connection monitor service";
// provider does not support connection monitoring
}
else
{
services_enabled_.connection_monitor_service = services.connection_monitor_service;
} }
services_enabled_.connection_monitor_service = services.connection_monitor_service;
} }
} }