1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-07-03 16:22:35 +03:00

Retrieve provider options before provider is initialized

Change provider_options so that it does not depend on provider.
Call into config_service when provider is created, i.e. after
library is loaded, before it is initialized, so that we can
inject additional options at startup.
Change the signature of the call provider options callback to
take provider_options object as parameter.
This commit is contained in:
Daniele Sciascia
2025-02-28 15:42:08 +01:00
parent cb8f870d58
commit d68650acf5
11 changed files with 72 additions and 49 deletions

View File

@ -51,6 +51,7 @@ namespace wsrep
class event_service;
class client_service;
class connection_monitor_service;
class provider_options;
class stid
{
public:
@ -528,7 +529,7 @@ namespace wsrep
static std::unique_ptr<provider> make_provider(
wsrep::server_state&,
const std::string& provider_spec,
const std::function<std::string()>& provider_options_cb,
const std::function<std::string(provider_options&)>& provider_options_cb,
const wsrep::provider::services& services
= wsrep::provider::services());
protected: