You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
This reverts commit f916e64927
.
This commit is contained in:
@ -18,22 +18,19 @@
|
||||
#include <unistd.h>
|
||||
#include <stdint.h>
|
||||
#include <ctime>
|
||||
#include <sys/time.h>
|
||||
|
||||
#include <boost/uuid/uuid.hpp>
|
||||
#include <boost/uuid/uuid_generators.hpp>
|
||||
#include <map>
|
||||
#include <mutex>
|
||||
#include <boost/thread/mutex.hpp>
|
||||
using namespace boost;
|
||||
|
||||
|
||||
#include "querytele.h"
|
||||
|
||||
namespace
|
||||
{
|
||||
// It's not clear that random_generator is thread-safe, so we'll just mutex it...
|
||||
uuids::random_generator uuidgen;
|
||||
std::mutex uuidgenMtx;
|
||||
mutex uuidgenMtx;
|
||||
} // namespace
|
||||
|
||||
namespace querytele
|
||||
@ -41,7 +38,7 @@ namespace querytele
|
||||
/*static*/
|
||||
uuids::uuid QueryTeleClient::genUUID()
|
||||
{
|
||||
std::unique_lock lk(uuidgenMtx);
|
||||
mutex::scoped_lock lk(uuidgenMtx);
|
||||
return uuidgen();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user