1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

MCOL-5464: Fixes of bugs from ASAN warnings, part one (#2792)

* Fixes of bugs from ASAN warnings, part one

* MQC as static library, with nifty counter for global map and mutex

* Switch clang to 16

* link messageqcpp to execplan
This commit is contained in:
Leonid Fedorov
2023-04-04 02:33:23 +03:00
committed by GitHub
parent ac8881091b
commit 2e1394149b
76 changed files with 630 additions and 2050 deletions

View File

@ -54,8 +54,10 @@ class SlaveComm
EXPORT SlaveComm();
/** Use this ctor to have it connected to the rest of the DBRM system */
EXPORT SlaveComm(std::string hostname, SlaveDBRMNode* s); // hostname = 'DBRM_WorkerN'
EXPORT ~SlaveComm();
EXPORT SlaveComm(std::string hostname); // hostname = 'DBRM_WorkerN'
EXPORT ~SlaveComm() {};
SlaveDBRMNode& getSlaveNode() { return *slave; }
EXPORT void run();
EXPORT void stop();
@ -112,15 +114,15 @@ class SlaveComm
void saveDelta();
bool processExists(const uint32_t pid, const std::string& pname);
messageqcpp::MessageQueueServer* server;
std::unique_ptr<messageqcpp::MessageQueueServer> server;
messageqcpp::IOSocket master;
SlaveDBRMNode* slave;
std::unique_ptr<SlaveDBRMNode> slave;
std::string savefile;
bool release, die, firstSlave, saveFileToggle, takeSnapshot, doSaveDelta, standalone, printOnly;
messageqcpp::ByteStream delta;
idbdatafile::IDBDataFile* currentSaveFile;
std::unique_ptr<idbdatafile::IDBDataFile> currentSaveFile;
std::string journalName;
idbdatafile::IDBDataFile* journalh;
std::unique_ptr<idbdatafile::IDBDataFile> journalh;
int64_t snapshotInterval, journalCount;
struct timespec MSG_TIMEOUT;
};