summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Yurchenko <alexey.yurchenko@galeracluster.com>2022-02-16 23:36:31 +0200
committerJan Lindström <jan.lindstrom@mariadb.com>2022-02-17 10:03:51 +0200
commitb8bb185500b8b69dfad15abff5efa72457cdce88 (patch)
tree8614dabb0b7e3e39062e277eb421e22e2fd7f1c1
parentc9bc10e6e87229e7990e03a6903c5529ac82d7a8 (diff)
downloadmariadb-git-b8bb185500b8b69dfad15abff5efa72457cdce88.tar.gz
Removed dead code.
-rw-r--r--sql/wsrep_mysqld.cc1
-rw-r--r--sql/wsrep_utils.h21
2 files changed, 0 insertions, 22 deletions
diff --git a/sql/wsrep_mysqld.cc b/sql/wsrep_mysqld.cc
index 9ad3ef0c1c0..087b6c5b74d 100644
--- a/sql/wsrep_mysqld.cc
+++ b/sql/wsrep_mysqld.cc
@@ -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;
/*
*/
diff --git a/sql/wsrep_utils.h b/sql/wsrep_utils.h
index 974c623521e..88c5770d3fe 100644
--- a/sql/wsrep_utils.h
+++ b/sql/wsrep_utils.h
@@ -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);