mirror of
https://github.com/MariaDB/server.git
synced 2025-09-02 09:41:40 +03:00
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
This commit is contained in:
@@ -37,7 +37,7 @@ public:
|
||||
public:
|
||||
virtual ~Session() {}
|
||||
virtual void runSession(){}
|
||||
virtual void stopSession(){}
|
||||
virtual void stopSession(){ m_stop = true; }
|
||||
protected:
|
||||
friend class SocketServer;
|
||||
friend void* sessionThread_C(void*);
|
||||
@@ -98,6 +98,8 @@ public:
|
||||
*/
|
||||
void stopSessions(bool wait = false);
|
||||
|
||||
void foreachSession(void (*f)(SocketServer::Session*, void*), void *data);
|
||||
|
||||
private:
|
||||
struct SessionInstance {
|
||||
Service * m_service;
|
||||
|
Reference in New Issue
Block a user