summaryrefslogtreecommitdiff
path: root/ndb/src/mgmsrv
diff options
context:
space:
mode:
authorunknown <tomas@poseidon.ndb.mysql.com>2004-11-30 12:02:53 +0000
committerunknown <tomas@poseidon.ndb.mysql.com>2004-11-30 12:02:53 +0000
commit07ed8294fa83e1c5acd3ecc4691667690e578581 (patch)
tree9e994ebd29b93f915f209718d9835e481c09d3c8 /ndb/src/mgmsrv
parent3eada05db21329d7a295994c075241927e58fc83 (diff)
downloadmariadb-git-07ed8294fa83e1c5acd3ecc4691667690e578581.tar.gz
added check connection mgmapi method
added ndb_mgm_check_connection when error is printed ndb/include/mgmapi/mgmapi.h: added check connection mgmapi method ndb/src/mgmapi/mgmapi.cpp: added check connection mgmapi method ndb/src/mgmclient/CommandInterpreter.cpp: added mgm_check_check_connection when error is printed ndb/src/mgmsrv/Services.cpp: added check connection mgmapi method ndb/src/mgmsrv/Services.hpp: added check connection mgmapi method
Diffstat (limited to 'ndb/src/mgmsrv')
-rw-r--r--ndb/src/mgmsrv/Services.cpp11
-rw-r--r--ndb/src/mgmsrv/Services.hpp1
2 files changed, 12 insertions, 0 deletions
diff --git a/ndb/src/mgmsrv/Services.cpp b/ndb/src/mgmsrv/Services.cpp
index 0208805b2d3..5834d40cc78 100644
--- a/ndb/src/mgmsrv/Services.cpp
+++ b/ndb/src/mgmsrv/Services.cpp
@@ -244,6 +244,8 @@ ParserRow<MgmApiSession> commands[] = {
MGM_CMD("purge stale sessions", &MgmApiSession::purge_stale_sessions, ""),
+ MGM_CMD("check connection", &MgmApiSession::check_connection, ""),
+
MGM_END()
};
@@ -1454,6 +1456,15 @@ MgmApiSession::purge_stale_sessions(Parser_t::Context &ctx,
m_output->println("");
}
+void
+MgmApiSession::check_connection(Parser_t::Context &ctx,
+ const class Properties &args)
+{
+ m_output->println("check connection reply");
+ m_output->println("result: Ok");
+ m_output->println("");
+}
+
template class MutexVector<int>;
template class Vector<ParserRow<MgmApiSession> const*>;
template class Vector<unsigned short>;
diff --git a/ndb/src/mgmsrv/Services.hpp b/ndb/src/mgmsrv/Services.hpp
index 7d614d6241c..6a5f06a659e 100644
--- a/ndb/src/mgmsrv/Services.hpp
+++ b/ndb/src/mgmsrv/Services.hpp
@@ -91,6 +91,7 @@ public:
void listen_event(Parser_t::Context &ctx, const class Properties &args);
void purge_stale_sessions(Parser_t::Context &ctx, const class Properties &args);
+ void check_connection(Parser_t::Context &ctx, const class Properties &args);
void repCommand(Parser_t::Context &ctx, const class Properties &args);
};