1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-01 06:46:55 +03:00

No boost condition (#2822)

This patch replaces boost primitives with stdlib counterparts.
This commit is contained in:
Leonid Fedorov
2023-04-22 00:42:45 +03:00
committed by GitHub
parent 3ce19abdae
commit f916e64927
245 changed files with 1261 additions and 2007 deletions

View File

@ -72,7 +72,7 @@ using namespace idbdatafile;
namespace redistribute
{
// static variables
boost::mutex RedistributeWorkerThread::fActionMutex;
std::mutex RedistributeWorkerThread::fActionMutex;
volatile bool RedistributeWorkerThread::fStopAction = false;
volatile bool RedistributeWorkerThread::fCommitted = false;
string RedistributeWorkerThread::fWesInUse;
@ -85,7 +85,7 @@ RedistributeWorkerThread::RedistributeWorkerThread(ByteStream& bs, IOSocket& ios
RedistributeWorkerThread::~RedistributeWorkerThread()
{
boost::mutex::scoped_lock lock(fActionMutex);
std::unique_lock lock(fActionMutex);
if (fNewFilePtr)
closeFile(fNewFilePtr);
@ -124,7 +124,7 @@ void RedistributeWorkerThread::handleRequest()
{
// clear stop flag if ever set.
{
boost::mutex::scoped_lock lock(fActionMutex);
std::unique_lock lock(fActionMutex);
fStopAction = false;
fCommitted = false;
}
@ -172,7 +172,7 @@ void RedistributeWorkerThread::handleRequest()
sendResponse(RED_ACTN_REQUEST);
boost::mutex::scoped_lock lock(fActionMutex);
std::unique_lock lock(fActionMutex);
fWesInUse.clear();
fMsgQueueClient.reset();
@ -865,7 +865,7 @@ int RedistributeWorkerThread::updateDbrm()
{
int rc1 = BRM::ERR_OK;
int rc2 = BRM::ERR_OK;
boost::mutex::scoped_lock lock(fActionMutex);
std::unique_lock lock(fActionMutex);
// cannot stop after extent map is updated.
if (!fStopAction)
@ -1061,7 +1061,7 @@ void RedistributeWorkerThread::addToDirSet(const char* fileName, bool isSource)
void RedistributeWorkerThread::handleStop()
{
boost::mutex::scoped_lock lock(fActionMutex);
std::unique_lock lock(fActionMutex);
// cannot stop after extent map is updated.
if (!fCommitted)