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:
@ -29,8 +29,7 @@
|
||||
#include <algorithm>
|
||||
#include <unistd.h>
|
||||
using namespace std;
|
||||
#include <map>
|
||||
#include <mutex>
|
||||
#include <boost/thread/mutex.hpp>
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
using namespace boost;
|
||||
|
||||
@ -59,13 +58,13 @@ namespace WriteEngine
|
||||
{
|
||||
BRMWrapper* volatile BRMWrapper::m_instance = NULL;
|
||||
boost::thread_specific_ptr<int> BRMWrapper::m_ThreadDataPtr;
|
||||
std::mutex BRMWrapper::m_instanceCreateMutex;
|
||||
boost::mutex BRMWrapper::m_instanceCreateMutex;
|
||||
|
||||
|
||||
bool BRMWrapper::m_useVb = true;
|
||||
OID BRMWrapper::m_curVBOid = INVALID_NUM;
|
||||
IDBDataFile* BRMWrapper::m_curVBFile = NULL;
|
||||
std::mutex vbFileLock;
|
||||
boost::mutex vbFileLock;
|
||||
struct fileInfoCompare // lt operator
|
||||
{
|
||||
bool operator()(const File& lhs, const File& rhs) const
|
||||
@ -301,7 +300,7 @@ BRMWrapper* BRMWrapper::getInstance()
|
||||
{
|
||||
if (m_instance == 0)
|
||||
{
|
||||
std::unique_lock lock(m_instanceCreateMutex);
|
||||
boost::mutex::scoped_lock lock(m_instanceCreateMutex);
|
||||
|
||||
if (m_instance == 0)
|
||||
{
|
||||
@ -1639,7 +1638,7 @@ int BRMWrapper::writeVB(IDBDataFile* pSourceFile, const VER_t transID, const OID
|
||||
fileInfo.fSegment = 0;
|
||||
// fileInfo.fDbRoot = (freeList[0].vbOID % rootCnt) + 1;
|
||||
fileInfo.fDbRoot = dbRoot;
|
||||
std::unique_lock lk(vbFileLock);
|
||||
boost::mutex::scoped_lock lk(vbFileLock);
|
||||
pTargetFile = openFile(fileInfo, "r+b", true);
|
||||
|
||||
if (pTargetFile == NULL)
|
||||
|
Reference in New Issue
Block a user