mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-28 20:02:00 +03:00
* Return provider status from provider connect
* Call to get server status variables along with provider variables * Deal with intermediate non-prims
This commit is contained in:
@ -223,10 +223,10 @@ namespace wsrep
|
||||
{ }
|
||||
virtual ~provider() { }
|
||||
// Provider state management
|
||||
virtual int connect(const std::string& cluster_name,
|
||||
const std::string& cluster_url,
|
||||
const std::string& state_donor,
|
||||
bool bootstrap) = 0;
|
||||
virtual enum status connect(const std::string& cluster_name,
|
||||
const std::string& cluster_url,
|
||||
const std::string& state_donor,
|
||||
bool bootstrap) = 0;
|
||||
virtual int disconnect() = 0;
|
||||
|
||||
virtual int capabilities() const = 0;
|
||||
|
@ -439,6 +439,10 @@ namespace wsrep
|
||||
assert(lock.owns_lock());
|
||||
return state_;
|
||||
}
|
||||
|
||||
|
||||
std::vector<wsrep::provider::status_variable> status() const;
|
||||
|
||||
/**
|
||||
* Set server wide wsrep debug logging level.
|
||||
*
|
||||
@ -459,6 +463,7 @@ namespace wsrep
|
||||
void debug_log_filter(const std::string&);
|
||||
|
||||
wsrep::mutex& mutex() { return mutex_; }
|
||||
|
||||
protected:
|
||||
/** Server state constructor
|
||||
*
|
||||
|
Reference in New Issue
Block a user