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

@ -146,6 +146,16 @@ public:
fPackageWorkQueueSize = workQueueSize;
}
inline bool pendingShutdown() const
{
return fShutdownFlag;
}
inline void startShutdown()
{
fShutdownFlag = true;
}
private:
//not copyable
DMLServer(const DMLServer& rhs);
@ -156,6 +166,7 @@ private:
boost::scoped_ptr<messageqcpp::MessageQueueServer> fMqServer;
BRM::DBRM* fDbrm;
bool fShutdownFlag;
public:
/** @brief the thread pool for processing dml packages