diff options
author | unknown <tomas@poseidon.ndb.mysql.com> | 2004-11-09 19:39:29 +0000 |
---|---|---|
committer | unknown <tomas@poseidon.ndb.mysql.com> | 2004-11-09 19:39:29 +0000 |
commit | 4c26186b4723f8cb9c44b1c9b0314d54d532f826 (patch) | |
tree | edc7c262c8c446aa592557dc15ccb01c2a6d7af5 /ndb/src/mgmsrv/Services.hpp | |
parent | 8e8c1a4756f04b582893965af0b780c2d32536f9 (diff) | |
download | mariadb-git-4c26186b4723f8cb9c44b1c9b0314d54d532f826.tar.gz |
added management function to purge stale sessions in the management server
ndb/include/util/Bitmask.hpp:
added bitXORC
ndb/include/util/SocketServer.hpp:
added method to apply function on each session
ndb/src/common/util/SocketServer.cpp:
added method to apply function on each session
Diffstat (limited to 'ndb/src/mgmsrv/Services.hpp')
-rw-r--r-- | ndb/src/mgmsrv/Services.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ndb/src/mgmsrv/Services.hpp b/ndb/src/mgmsrv/Services.hpp index e47820826b6..bfc915f18f1 100644 --- a/ndb/src/mgmsrv/Services.hpp +++ b/ndb/src/mgmsrv/Services.hpp @@ -28,7 +28,9 @@ /** Undefine this to remove backwards compatibility for "GET CONFIG". */ #define MGM_GET_CONFIG_BACKWARDS_COMPAT -class MgmApiSession : public SocketServer::Session { +class MgmApiSession : public SocketServer::Session +{ + static void stop_session_if_not_connected(SocketServer::Session *_s, void *data); private: typedef Parser<MgmApiSession> Parser_t; @@ -84,6 +86,8 @@ public: void setParameter(Parser_t::Context &ctx, const class Properties &args); void listen_event(Parser_t::Context &ctx, const class Properties &args); + + void purge_stale_sessions(Parser_t::Context &ctx, const class Properties &args); void repCommand(Parser_t::Context &ctx, const class Properties &args); }; |