You've already forked mariadb-columnstore-engine
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:
@ -19,18 +19,24 @@
|
||||
|
||||
#include <map>
|
||||
#include "messagequeue.h"
|
||||
#include <memory>
|
||||
|
||||
#include <boost/stacktrace.hpp>
|
||||
|
||||
namespace messageqcpp
|
||||
{
|
||||
|
||||
|
||||
static struct LockedClientMapInitilizer {
|
||||
LockedClientMapInitilizer ();
|
||||
~LockedClientMapInitilizer ();
|
||||
} clientMapInitilizer; // static initializer for every translation unit
|
||||
|
||||
struct ClientObject
|
||||
{
|
||||
MessageQueueClient* client;
|
||||
uint64_t lastUsed;
|
||||
bool inUse;
|
||||
|
||||
ClientObject() : client(NULL), lastUsed(0), inUse(false)
|
||||
{
|
||||
}
|
||||
std::unique_ptr<MessageQueueClient> client;
|
||||
uint64_t lastUsed = 0;
|
||||
bool inUse = false;
|
||||
};
|
||||
|
||||
class MessageQueueClientPool
|
||||
@ -45,8 +51,6 @@ class MessageQueueClientPool
|
||||
private:
|
||||
MessageQueueClientPool(){};
|
||||
~MessageQueueClientPool(){};
|
||||
|
||||
static std::multimap<std::string, ClientObject*> clientMap;
|
||||
};
|
||||
|
||||
} // namespace messageqcpp
|
||||
|
Reference in New Issue
Block a user