1
0
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:
Leonid Fedorov
2022-01-21 16:43:49 +00:00
parent 6b6411229f
commit 04752ec546
1376 changed files with 393460 additions and 412662 deletions

View File

@ -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