@@ -297,16 +297,15 @@ namespace wsrep
297
297
* @return Zero on success, non-zero on error.
298
298
*/
299
299
int load_provider (const std::string& provider,
300
- const std::function<std::string()>& provider_options_cb ,
300
+ const std::function<std::string(provider_options& )>&,
301
301
const wsrep::provider::services& services
302
302
= wsrep::provider::services());
303
303
304
-
305
304
/* *
306
305
* Load WSRep provider.
307
306
*
308
307
* @param provider WSRep provider library to be loaded.
309
- * @param provider_options Provider specific options string
308
+ * @param options Provider specific options string
310
309
* to be passed for provider during initialization.
311
310
* @param services Application defined services passed to
312
311
* the provider.
@@ -316,13 +315,13 @@ namespace wsrep
316
315
* @note Provided for backward compatibility.
317
316
*/
318
317
int load_provider (const std::string& provider,
319
- const std::string& provider_options ,
318
+ const std::string& options ,
320
319
const wsrep::provider::services& services
321
320
= wsrep::provider::services())
322
321
{
323
- return load_provider (provider,
324
- [provider_options]( ) { return provider_options ; },
325
- services);
322
+ return load_provider (
323
+ provider, [options](provider_options& ) { return options ; },
324
+ services);
326
325
}
327
326
328
327
using provider_factory_func =
@@ -357,7 +356,7 @@ namespace wsrep
357
356
return *provider_;
358
357
}
359
358
360
- wsrep::provider_options* provider_options ()
359
+ wsrep::provider_options* get_provider_options ()
361
360
{
362
361
return &provider_options_;
363
362
}
0 commit comments