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:
@ -40,8 +40,7 @@ using namespace std;
|
||||
#include "loggingid.h"
|
||||
using namespace logging;
|
||||
|
||||
#include <map>
|
||||
#include <mutex>
|
||||
#include <boost/thread/mutex.hpp>
|
||||
using namespace boost;
|
||||
|
||||
#include "messagequeue.h"
|
||||
@ -205,7 +204,7 @@ void WESplClient::send()
|
||||
if (fOwner.getDebugLvl() > 2)
|
||||
cout << "DataRqstCnt [" << getPmId() << "] = " << getDataRqstCount() << endl;
|
||||
|
||||
std::unique_lock aLock(fSentQMutex);
|
||||
boost::mutex::scoped_lock aLock(fSentQMutex);
|
||||
messageqcpp::SBS aSbs = fSendQueue.front();
|
||||
fSendQueue.pop();
|
||||
aLock.unlock();
|
||||
@ -213,7 +212,7 @@ void WESplClient::send()
|
||||
|
||||
if (aLen > 0)
|
||||
{
|
||||
std::unique_lock aLock(fWriteMutex);
|
||||
boost::mutex::scoped_lock aLock(fWriteMutex);
|
||||
setBytesTx(getBytesTx() + aLen);
|
||||
|
||||
try
|
||||
@ -310,7 +309,7 @@ void WESplClient::add2SendQueue(const messageqcpp::SBS& Sbs)
|
||||
|
||||
void WESplClient::clearSendQueue()
|
||||
{
|
||||
std::unique_lock aLock(fSentQMutex);
|
||||
boost::mutex::scoped_lock aLock(fSentQMutex);
|
||||
|
||||
while (!fSendQueue.empty())
|
||||
fSendQueue.pop();
|
||||
@ -321,7 +320,7 @@ void WESplClient::clearSendQueue()
|
||||
int WESplClient::getSendQSize()
|
||||
{
|
||||
int aQSize = 0;
|
||||
std::unique_lock aLock(fSentQMutex);
|
||||
boost::mutex::scoped_lock aLock(fSentQMutex);
|
||||
aQSize = fSendQueue.size();
|
||||
aLock.unlock();
|
||||
return aQSize;
|
||||
|
Reference in New Issue
Block a user