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:
@ -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:
|
||||
|
Reference in New Issue
Block a user