mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-28 20:02:00 +03:00
Change provider options callback signature to return error code
The callback now returns an error code and takes a reference to provider options string.
This commit is contained in:
@ -526,12 +526,12 @@ namespace wsrep
|
||||
* @param provider_options_cb Callback to get initial provider options
|
||||
* @param thread_service Optional thread service implementation.
|
||||
*/
|
||||
static std::unique_ptr<provider>
|
||||
make_provider(wsrep::server_state&, const std::string& provider_spec,
|
||||
const std::function<std::string(const provider_options&)>&
|
||||
provider_options_cb,
|
||||
const wsrep::provider::services& services
|
||||
= wsrep::provider::services());
|
||||
static std::unique_ptr<provider> make_provider(
|
||||
wsrep::server_state&, const std::string& provider_spec,
|
||||
const std::function<int(const provider_options&, std::string&)>&
|
||||
provider_options_cb,
|
||||
const wsrep::provider::services& services
|
||||
= wsrep::provider::services());
|
||||
|
||||
protected:
|
||||
wsrep::server_state& server_state_;
|
||||
|
Reference in New Issue
Block a user