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

Reformat all code to coding standard

This commit is contained in:
Andrew Hutchings
2017-10-26 17:18:17 +01:00
parent 4985f3456e
commit 01446d1e22
1296 changed files with 403852 additions and 353747 deletions

View File

@ -38,59 +38,59 @@
#include "dbrm.h"
#include "batchloader.h"
#include "../writeengine/client/we_clients.h"
namespace dmlprocessor
namespace dmlprocessor
{
class BatchInsertProc
{
public:
typedef std::queue<messageqcpp::ByteStream > pkg_type;
typedef boost::shared_ptr<pkg_type> SP_PKG;
typedef std::vector<BRM::BulkSetHWMArg> BulkSetHWMArgs;
BatchInsertProc(bool isAutocommitOn, uint32_t tableOid, execplan::CalpontSystemCatalog::SCN txnId, BRM::DBRM* aDbrm);
BatchInsertProc(const BatchInsertProc& rhs);
~BatchInsertProc();
uint64_t grabTableLock(int32_t sessionId);
SP_PKG getInsertQueue ();
uint32_t getNumDBRoots();
void setLastPkg (bool lastPkg);
void addPkg(messageqcpp::ByteStream & insertBs);
messageqcpp::ByteStream getPkg();
void setError(int errorCode, std::string errMsg);
void getError(int & errorCode, std::string & errMsg);
int sendPkg(int pmId);
void buildPkg(messageqcpp::ByteStream& bs);
void buildLastPkg(messageqcpp::ByteStream& bs);
void sendFirstBatch();
void sendNextBatch();
void sendlastBatch();
void collectHwm();
void setHwm();
void receiveAllMsg();
void receiveOutstandingMsg();
typedef std::queue<messageqcpp::ByteStream > pkg_type;
typedef boost::shared_ptr<pkg_type> SP_PKG;
typedef std::vector<BRM::BulkSetHWMArg> BulkSetHWMArgs;
BatchInsertProc(bool isAutocommitOn, uint32_t tableOid, execplan::CalpontSystemCatalog::SCN txnId, BRM::DBRM* aDbrm);
BatchInsertProc(const BatchInsertProc& rhs);
~BatchInsertProc();
uint64_t grabTableLock(int32_t sessionId);
SP_PKG getInsertQueue ();
uint32_t getNumDBRoots();
void setLastPkg (bool lastPkg);
void addPkg(messageqcpp::ByteStream& insertBs);
messageqcpp::ByteStream getPkg();
void setError(int errorCode, std::string errMsg);
void getError(int& errorCode, std::string& errMsg);
int sendPkg(int pmId);
void buildPkg(messageqcpp::ByteStream& bs);
void buildLastPkg(messageqcpp::ByteStream& bs);
void sendFirstBatch();
void sendNextBatch();
void sendlastBatch();
void collectHwm();
void setHwm();
void receiveAllMsg();
void receiveOutstandingMsg();
private:
SP_PKG fInsertPkgQueue;
boost::condition condvar;
execplan::CalpontSystemCatalog::SCN fTxnid;
int fErrorCode;
std::string fErrMsg;
bool fLastpkg;
bool fIsAutocommitOn;
uint32_t fTableOid;
uint64_t fUniqueId;
BRM::DBRM* fDbrm;
WriteEngine::WEClients* fWEClient;
oam::OamCache *fOamcache;
std::vector<uint32_t> fPMs; //active PMs
batchloader::BatchLoader* fBatchLoader;
std::map<unsigned, bool> fPmState;
uint32_t fCurrentPMid;
boost::shared_ptr<messageqcpp::ByteStream> bsIn;
messageqcpp::ByteStream::byte tmp8;
messageqcpp::ByteStream::quadbyte tmp32;
std::vector<BulkSetHWMArgs> fHwmArgsAllPms;
uint64_t fTableLockid;
SP_PKG fInsertPkgQueue;
boost::condition condvar;
execplan::CalpontSystemCatalog::SCN fTxnid;
int fErrorCode;
std::string fErrMsg;
bool fLastpkg;
bool fIsAutocommitOn;
uint32_t fTableOid;
uint64_t fUniqueId;
BRM::DBRM* fDbrm;
WriteEngine::WEClients* fWEClient;
oam::OamCache* fOamcache;
std::vector<uint32_t> fPMs; //active PMs
batchloader::BatchLoader* fBatchLoader;
std::map<unsigned, bool> fPmState;
uint32_t fCurrentPMid;
boost::shared_ptr<messageqcpp::ByteStream> bsIn;
messageqcpp::ByteStream::byte tmp8;
messageqcpp::ByteStream::quadbyte tmp32;
std::vector<BulkSetHWMArgs> fHwmArgsAllPms;
uint64_t fTableLockid;
};
} // namespace dmlprocessor