Removed dead code.
This commit is contained in:
parent
c9bc10e6e8
commit
b8bb185500
@ -322,7 +322,6 @@ void WSREP_LOG(void (*fun)(const char* fmt, ...), const char* fmt, ...)
|
||||
|
||||
wsrep_uuid_t local_uuid = WSREP_UUID_UNDEFINED;
|
||||
wsrep_seqno_t local_seqno = WSREP_SEQNO_UNDEFINED;
|
||||
wsp::node_status local_status;
|
||||
|
||||
/*
|
||||
*/
|
||||
|
@ -21,27 +21,6 @@
|
||||
|
||||
unsigned int wsrep_check_ip (const char* const addr, bool *is_ipv6);
|
||||
size_t wsrep_guess_ip (char* buf, size_t buf_len);
|
||||
namespace wsp {
|
||||
class node_status
|
||||
{
|
||||
public:
|
||||
node_status() : status(wsrep::server_state::s_disconnected) {}
|
||||
void set(enum wsrep::server_state::state new_status,
|
||||
const wsrep::view* view= 0)
|
||||
{
|
||||
if (status != new_status || 0 != view)
|
||||
{
|
||||
wsrep_notify_status(new_status, view);
|
||||
status= new_status;
|
||||
}
|
||||
}
|
||||
enum wsrep::server_state::state get() const { return status; }
|
||||
private:
|
||||
enum wsrep::server_state::state status;
|
||||
};
|
||||
} /* namespace wsp */
|
||||
|
||||
extern wsp::node_status local_status;
|
||||
|
||||
/* returns the length of the host part of the address string */
|
||||
size_t wsrep_host_len(const char* addr, size_t addr_len);
|
||||
|
Loading…
x
Reference in New Issue
Block a user