mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-28 20:02:00 +03:00
Return provider status from set options.
This commit is contained in:
@ -825,12 +825,10 @@ std::string wsrep::wsrep_provider_v26::options() const
|
||||
return ret;
|
||||
}
|
||||
|
||||
void wsrep::wsrep_provider_v26::options(const std::string& opts)
|
||||
enum wsrep::provider::status
|
||||
wsrep::wsrep_provider_v26::options(const std::string& opts)
|
||||
{
|
||||
if (wsrep_->options_set(wsrep_, opts.c_str()) != WSREP_OK)
|
||||
{
|
||||
throw wsrep::runtime_error("Failed to set provider options");
|
||||
}
|
||||
return map_return_value(wsrep_->options_set(wsrep_, opts.c_str()));
|
||||
}
|
||||
|
||||
void* wsrep::wsrep_provider_v26::native() const
|
||||
|
@ -67,7 +67,7 @@ namespace wsrep
|
||||
std::vector<status_variable> status() const;
|
||||
void reset_status();
|
||||
std::string options() const;
|
||||
void options(const std::string&);
|
||||
enum wsrep::provider::status options(const std::string&);
|
||||
void* native() const;
|
||||
private:
|
||||
wsrep_provider_v26(const wsrep_provider_v26&);
|
||||
|
Reference in New Issue
Block a user