1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

MCOL-4675 DMLProc now automatically and gracefully shutdowns when a cluster state is set to

SS_SHUTDOWN_PENDING | SS_ROLLBACK
This commit is contained in:
Roman Nozdrin
2021-05-18 18:46:35 +00:00
committed by Leonid Fedorov
parent 646ffb6f95
commit 90397dfed0
4 changed files with 44 additions and 4 deletions

View File

@ -42,6 +42,7 @@
#include "socket.h"
#include "socketparms.h"
#include "bytestream.h"
#include "checks.h"
class MessageQTestSuite;
@ -198,6 +199,7 @@ public:
inline virtual bool isConnected() const;
inline virtual bool hasData() const;
inline bool hasSocketDescriptor() const;
friend class ::MessageQTestSuite;
@ -217,6 +219,12 @@ inline const sockaddr IOSocket::sa() const
{
return fSa;
}
inline bool IOSocket::hasSocketDescriptor() const
{
return fSocket && utils::is_nonnegative(fSocket->socketParms().sd());
}
inline void IOSocket::sa(const sockaddr* sa)
{
fSa = *sa;