summaryrefslogtreecommitdiff
path: root/sql/wsrep_server_state.h
diff options
context:
space:
mode:
Diffstat (limited to 'sql/wsrep_server_state.h')
-rw-r--r--sql/wsrep_server_state.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/wsrep_server_state.h b/sql/wsrep_server_state.h
index 34ff4105180..1ef937300f6 100644
--- a/sql/wsrep_server_state.h
+++ b/sql/wsrep_server_state.h
@@ -35,11 +35,17 @@ public:
const wsrep::gtid& initial_position,
int max_protocol_version);
static void destroy();
+
static Wsrep_server_state& instance()
{
return *m_instance;
}
+ static bool is_inited()
+ {
+ return (m_instance != NULL);
+ }
+
static wsrep::provider& get_provider()
{
return instance().provider();