1
0
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:
Daniele Sciascia
2025-07-01 13:58:32 +02:00
parent d36bfb2bb5
commit b491197c58
7 changed files with 44 additions and 27 deletions

View File

@ -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_;