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
Reformat all code to coding standard
This commit is contained in:
@ -57,72 +57,72 @@ namespace redistribute
|
||||
|
||||
class RedistributeControl
|
||||
{
|
||||
public:
|
||||
~RedistributeControl();
|
||||
public:
|
||||
~RedistributeControl();
|
||||
|
||||
int handleUIMsg(messageqcpp::ByteStream&, messageqcpp::IOSocket&);
|
||||
int handleJobMsg(messageqcpp::ByteStream&, messageqcpp::IOSocket&);
|
||||
int handleUIMsg(messageqcpp::ByteStream&, messageqcpp::IOSocket&);
|
||||
int handleJobMsg(messageqcpp::ByteStream&, messageqcpp::IOSocket&);
|
||||
|
||||
static RedistributeControl* instance();
|
||||
static void destroyInstace();
|
||||
static RedistributeControl* instance();
|
||||
static void destroyInstace();
|
||||
|
||||
private:
|
||||
int handleStartMsg(messageqcpp::ByteStream&, messageqcpp::IOSocket&);
|
||||
int handleStatusMsg(messageqcpp::ByteStream&, messageqcpp::IOSocket&);
|
||||
int handleStopMsg(messageqcpp::ByteStream&, messageqcpp::IOSocket&);
|
||||
int handleClearMsg(messageqcpp::ByteStream&, messageqcpp::IOSocket&);
|
||||
private:
|
||||
int handleStartMsg(messageqcpp::ByteStream&, messageqcpp::IOSocket&);
|
||||
int handleStatusMsg(messageqcpp::ByteStream&, messageqcpp::IOSocket&);
|
||||
int handleStopMsg(messageqcpp::ByteStream&, messageqcpp::IOSocket&);
|
||||
int handleClearMsg(messageqcpp::ByteStream&, messageqcpp::IOSocket&);
|
||||
|
||||
int handleStatusRpt(messageqcpp::ByteStream&, messageqcpp::IOSocket&);
|
||||
int handleStatusRpt(messageqcpp::ByteStream&, messageqcpp::IOSocket&);
|
||||
|
||||
uint32_t getCurrentState();
|
||||
bool getStartOptions(messageqcpp::ByteStream&);
|
||||
uint32_t getCurrentState();
|
||||
bool getStartOptions(messageqcpp::ByteStream&);
|
||||
|
||||
void setEntryCount(uint32_t);
|
||||
void updateState(uint32_t);
|
||||
void updateProgressInfo(uint32_t, time_t);
|
||||
void setEntryCount(uint32_t);
|
||||
void updateState(uint32_t);
|
||||
void updateProgressInfo(uint32_t, time_t);
|
||||
|
||||
void logMessage(const std::string&);
|
||||
void logMessage(const std::string&);
|
||||
|
||||
boost::mutex fSessionMutex;
|
||||
boost::mutex fInfoFileMutex;
|
||||
boost::mutex fSessionMutex;
|
||||
boost::mutex fInfoFileMutex;
|
||||
|
||||
boost::scoped_ptr<boost::thread> fControlThread;
|
||||
boost::scoped_ptr<boost::thread> fWorkThread;
|
||||
boost::scoped_ptr<boost::thread> fControlThread;
|
||||
boost::scoped_ptr<boost::thread> fWorkThread;
|
||||
|
||||
FILE* fInfoFilePtr;
|
||||
FILE* fPlanFilePtr;
|
||||
std::string fRedistributeDir;
|
||||
std::string fInfoFilePath;
|
||||
std::string fPlanFilePath;
|
||||
std::string fUIResponse;
|
||||
FILE* fInfoFilePtr;
|
||||
FILE* fPlanFilePtr;
|
||||
std::string fRedistributeDir;
|
||||
std::string fInfoFilePath;
|
||||
std::string fPlanFilePath;
|
||||
std::string fUIResponse;
|
||||
|
||||
uint32_t fOptions;
|
||||
std::vector<int> fSourceList;
|
||||
std::vector<int> fDestinationList;
|
||||
std::vector<RedistributePlanEntry> fRedistributePlan;
|
||||
RedistributeInfo fRedistributeInfo;
|
||||
uint32_t fOptions;
|
||||
std::vector<int> fSourceList;
|
||||
std::vector<int> fDestinationList;
|
||||
std::vector<RedistributePlanEntry> fRedistributePlan;
|
||||
RedistributeInfo fRedistributeInfo;
|
||||
|
||||
std::string fErrorMsg;
|
||||
std::string fErrorMsg;
|
||||
|
||||
// for work threads, they don't have to create their own.
|
||||
boost::shared_ptr<oam::Oam> fOam;
|
||||
boost::shared_ptr<BRM::DBRM> fDbrm;
|
||||
boost::shared_ptr<logging::Logger> fSysLogger;
|
||||
// for work threads, they don't have to create their own.
|
||||
boost::shared_ptr<oam::Oam> fOam;
|
||||
boost::shared_ptr<BRM::DBRM> fDbrm;
|
||||
boost::shared_ptr<logging::Logger> fSysLogger;
|
||||
|
||||
// singleton instance
|
||||
static RedistributeControl* fInstance;
|
||||
// singleton instance
|
||||
static RedistributeControl* fInstance;
|
||||
|
||||
// private constructor
|
||||
RedistributeControl();
|
||||
// private constructor
|
||||
RedistributeControl();
|
||||
|
||||
// disable copy constructor and assignment operator
|
||||
// private without implementation
|
||||
RedistributeControl(const RedistributeControl&);
|
||||
RedistributeControl& operator=(const RedistributeControl&);
|
||||
// disable copy constructor and assignment operator
|
||||
// private without implementation
|
||||
RedistributeControl(const RedistributeControl&);
|
||||
RedistributeControl& operator=(const RedistributeControl&);
|
||||
|
||||
|
||||
friend class RedistributeControlThread;
|
||||
friend class RedistributeWorkerThread;
|
||||
friend class RedistributeControlThread;
|
||||
friend class RedistributeWorkerThread;
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user