@@ -297,16 +297,15 @@ namespace wsrep
297297 * @return Zero on success, non-zero on error.
298298 */
299299 int load_provider (const std::string& provider,
300- const std::function<std::string()>& provider_options_cb ,
300+ const std::function<std::string(provider_options& )>&,
301301 const wsrep::provider::services& services
302302 = wsrep::provider::services());
303303
304-
305304 /* *
306305 * Load WSRep provider.
307306 *
308307 * @param provider WSRep provider library to be loaded.
309- * @param provider_options Provider specific options string
308+ * @param options Provider specific options string
310309 * to be passed for provider during initialization.
311310 * @param services Application defined services passed to
312311 * the provider.
@@ -316,13 +315,13 @@ namespace wsrep
316315 * @note Provided for backward compatibility.
317316 */
318317 int load_provider (const std::string& provider,
319- const std::string& provider_options ,
318+ const std::string& options ,
320319 const wsrep::provider::services& services
321320 = wsrep::provider::services())
322321 {
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);
326325 }
327326
328327 using provider_factory_func =
@@ -357,7 +356,7 @@ namespace wsrep
357356 return *provider_;
358357 }
359358
360- wsrep::provider_options* provider_options ()
359+ wsrep::provider_options* get_provider_options ()
361360 {
362361 return &provider_options_;
363362 }
0 commit comments