You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-01 06:46:55 +03:00
clang format apply
This commit is contained in:
@ -16,10 +16,10 @@
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
/***********************************************************************
|
||||
* $Id: ddlprocessor.h 6 2006-06-23 17:58:51Z rcraighead $
|
||||
*
|
||||
*
|
||||
***********************************************************************/
|
||||
* $Id: ddlprocessor.h 6 2006-06-23 17:58:51Z rcraighead $
|
||||
*
|
||||
*
|
||||
***********************************************************************/
|
||||
/** @file */
|
||||
#pragma once
|
||||
|
||||
@ -31,73 +31,68 @@
|
||||
namespace ddlprocessor
|
||||
{
|
||||
/** @brief process ddl packages as they arrive
|
||||
*/
|
||||
*/
|
||||
class DDLProcessor
|
||||
{
|
||||
public:
|
||||
/** @brief ctor
|
||||
*
|
||||
* @param packageMaxThreads the maximum number of threads to process ddl packages
|
||||
* @param packageWorkQueueSize the maximum number of ddl packages in the work queue
|
||||
*/
|
||||
DDLProcessor( int packageMaxThreads, int packageWorkQueueSize );
|
||||
~DDLProcessor();
|
||||
/** @brief entry point for the DDLProcessor
|
||||
*/
|
||||
void process();
|
||||
int commitTransaction(uint32_t txnID, std::string& errorMsg);
|
||||
public:
|
||||
/** @brief ctor
|
||||
*
|
||||
* @param packageMaxThreads the maximum number of threads to process ddl packages
|
||||
* @param packageWorkQueueSize the maximum number of ddl packages in the work queue
|
||||
*/
|
||||
DDLProcessor(int packageMaxThreads, int packageWorkQueueSize);
|
||||
~DDLProcessor();
|
||||
/** @brief entry point for the DDLProcessor
|
||||
*/
|
||||
void process();
|
||||
int commitTransaction(uint32_t txnID, std::string& errorMsg);
|
||||
|
||||
/** @brief get the ddl package thread pool size
|
||||
*/
|
||||
inline int getPackageThreadPoolSize() const
|
||||
{
|
||||
return fPackageMaxThreads;
|
||||
}
|
||||
/** @brief get the ddl package thread pool size
|
||||
*/
|
||||
inline int getPackageThreadPoolSize() const
|
||||
{
|
||||
return fPackageMaxThreads;
|
||||
}
|
||||
|
||||
/** @brief set the ddl package thread pool size
|
||||
*/
|
||||
inline void setPackageThreadPoolSize( int threadPoolSize )
|
||||
{
|
||||
fPackageMaxThreads = threadPoolSize;
|
||||
}
|
||||
/** @brief set the ddl package thread pool size
|
||||
*/
|
||||
inline void setPackageThreadPoolSize(int threadPoolSize)
|
||||
{
|
||||
fPackageMaxThreads = threadPoolSize;
|
||||
}
|
||||
|
||||
/** @brief get the maximum number of ddl packages allowed in the work queue
|
||||
*/
|
||||
inline int getPackageWorkQueueSize() const
|
||||
{
|
||||
return fPackageWorkQueueSize;
|
||||
}
|
||||
/** @brief get the maximum number of ddl packages allowed in the work queue
|
||||
*/
|
||||
inline int getPackageWorkQueueSize() const
|
||||
{
|
||||
return fPackageWorkQueueSize;
|
||||
}
|
||||
|
||||
/** @brief set the maximum number of ddl packages allowed in the work queue
|
||||
*/
|
||||
inline void setPackageWorkQueueSize( int workQueueSize )
|
||||
{
|
||||
fPackageWorkQueueSize = workQueueSize;
|
||||
}
|
||||
/** @brief set the maximum number of ddl packages allowed in the work queue
|
||||
*/
|
||||
inline void setPackageWorkQueueSize(int workQueueSize)
|
||||
{
|
||||
fPackageWorkQueueSize = workQueueSize;
|
||||
}
|
||||
|
||||
protected:
|
||||
private:
|
||||
/** @brief ctor
|
||||
*/
|
||||
DDLProcessor();
|
||||
|
||||
protected:
|
||||
/** @brief the thread pool for processing ddl packages
|
||||
*/
|
||||
threadpool::ThreadPool fDdlPackagepool;
|
||||
|
||||
private:
|
||||
/** @brief ctor
|
||||
*/
|
||||
DDLProcessor();
|
||||
int fPackageMaxThreads; /** @brief max number of threads to process ddl packages */
|
||||
int fPackageWorkQueueSize; /** @brief max number of ddl packages waiting in the work queue */
|
||||
|
||||
/** @brief the thread pool for processing ddl packages
|
||||
*/
|
||||
threadpool::ThreadPool fDdlPackagepool;
|
||||
|
||||
int fPackageMaxThreads; /** @brief max number of threads to process ddl packages */
|
||||
int fPackageWorkQueueSize; /** @brief max number of ddl packages waiting in the work queue */
|
||||
|
||||
messageqcpp::MessageQueueServer fMqServer;
|
||||
boost::shared_ptr<execplan::CalpontSystemCatalog> csc;
|
||||
WriteEngine::WEClients* fWEClient;
|
||||
uint32_t fPMCount;
|
||||
querytele::QueryTeleClient fQtc;
|
||||
messageqcpp::MessageQueueServer fMqServer;
|
||||
boost::shared_ptr<execplan::CalpontSystemCatalog> csc;
|
||||
WriteEngine::WEClients* fWEClient;
|
||||
uint32_t fPMCount;
|
||||
querytele::QueryTeleClient fQtc;
|
||||
};
|
||||
|
||||
|
||||
} //namespace ddlprocessor
|
||||
|
||||
|
||||
} // namespace ddlprocessor
|
||||
|
Reference in New Issue
Block a user