mirror of
https://github.com/MariaDB/server.git
synced 2025-08-30 11:22:14 +03:00
ndb - bug#19930
Add mutex surronding sessions, as ndb_mgmd now actively tries to go and "purge stale sessions" ndb/include/util/SocketServer.hpp: Add mutex surronding sessions, as ndb_mgmd now actively tries to go and "purge stale sessions" ndb/src/common/util/SocketServer.cpp: Add mutex surronding sessions, as ndb_mgmd now actively tries to go and "purge stale sessions" ndb/src/mgmsrv/Services.cpp: Add mutex surronding sessions, as ndb_mgmd now actively tries to go and "purge stale sessions"
This commit is contained in:
@@ -105,7 +105,8 @@ public:
|
||||
void stopSessions(bool wait = false);
|
||||
|
||||
void foreachSession(void (*f)(Session*, void*), void *data);
|
||||
|
||||
void checkSessions();
|
||||
|
||||
private:
|
||||
struct SessionInstance {
|
||||
Service * m_service;
|
||||
@@ -116,12 +117,13 @@ private:
|
||||
Service * m_service;
|
||||
NDB_SOCKET_TYPE m_socket;
|
||||
};
|
||||
MutexVector<SessionInstance> m_sessions;
|
||||
NdbLockable m_session_mutex;
|
||||
Vector<SessionInstance> m_sessions;
|
||||
MutexVector<ServiceInstance> m_services;
|
||||
unsigned m_maxSessions;
|
||||
|
||||
void doAccept();
|
||||
void checkSessions();
|
||||
void checkSessionsImpl();
|
||||
void startSession(SessionInstance &);
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user