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

clang format apply

This commit is contained in:
Leonid Fedorov
2022-02-11 12:24:40 +00:00
parent 509f005be7
commit 7c808317dc
1367 changed files with 394342 additions and 413129 deletions

View File

@@ -16,10 +16,10 @@
MA 02110-1301, USA. */
/***********************************************************************
* $Id: commandpackageprocessor.h 9302 2013-03-07 16:06:59Z chao $
*
*
***********************************************************************/
* $Id: commandpackageprocessor.h 9302 2013-03-07 16:06:59Z chao $
*
*
***********************************************************************/
/** @file */
#ifndef COMMANDPACKAGEPROCESSOR_H
@@ -43,39 +43,34 @@
namespace dmlpackageprocessor
{
/** @brief concrete implementation of a DMLPackageProcessor.
* Specifically for interacting with the Write Engine to
* process INSERT dml statements.
*/
* Specifically for interacting with the Write Engine to
* process INSERT dml statements.
*/
class CommandPackageProcessor : public DMLPackageProcessor
{
public:
CommandPackageProcessor(BRM::DBRM* aDbrm, uint32_t sid) : DMLPackageProcessor(aDbrm, sid)
{
}
/** @brief process an CommandDMLPackage
*
* @param cpackage the CommandDMLPackage to process
*/
EXPORT DMLResult processPackage(dmlpackage::CalpontDMLPackage& cpackage);
public:
CommandPackageProcessor(BRM::DBRM* aDbrm, uint32_t sid) : DMLPackageProcessor(aDbrm, sid) {}
/** @brief process an CommandDMLPackage
*
* @param cpackage the CommandDMLPackage to process
*/
EXPORT DMLResult processPackage(dmlpackage::CalpontDMLPackage& cpackage);
protected:
private:
void viewTableLock(const dmlpackage::CalpontDMLPackage& cpackage, DMLResult& result);
void clearTableLock(uint64_t uniqueId, const dmlpackage::CalpontDMLPackage& cpackage, DMLResult& result);
void establishTableLockToClear(uint64_t tableLockID, BRM::TableLockInfo& lockInfo);
protected:
private:
void viewTableLock(const dmlpackage::CalpontDMLPackage& cpackage,
DMLResult& result );
void clearTableLock(uint64_t uniqueId,
const dmlpackage::CalpontDMLPackage& cpackage,
DMLResult& result );
void establishTableLockToClear(uint64_t tableLockID,
BRM::TableLockInfo& lockInfo);
// Tracks active cleartablelock commands by storing set of table lock IDs
static std::set<uint64_t> fActiveClearTableLockCmds;
static boost::mutex fActiveClearTableLockCmdMutex;
// Tracks active cleartablelock commands by storing set of table lock IDs
static std::set<uint64_t> fActiveClearTableLockCmds;
static boost::mutex fActiveClearTableLockCmdMutex;
};
}
} // namespace dmlpackageprocessor
#undef EXPORT
#endif //COMMANDPACKAGEPROCESSOR_H
#endif // COMMANDPACKAGEPROCESSOR_H