You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-23 06:52:28 +03:00
No boost condition (#2822)
This patch replaces boost primitives with stdlib counterparts.
This commit is contained in:
@@ -51,7 +51,7 @@ using namespace BRM;
|
||||
namespace
|
||||
{
|
||||
// Only one of the cacheutils fcns can run at a time
|
||||
boost::mutex CacheOpsMutex;
|
||||
std::mutex CacheOpsMutex;
|
||||
|
||||
// This global is updated only w/ atomic ops
|
||||
volatile uint32_t MultiReturnCode;
|
||||
@@ -151,7 +151,7 @@ namespace cacheutils
|
||||
*/
|
||||
int flushPrimProcCache()
|
||||
{
|
||||
boost::mutex::scoped_lock lk(CacheOpsMutex);
|
||||
std::unique_lock lk(CacheOpsMutex);
|
||||
|
||||
try
|
||||
{
|
||||
@@ -180,7 +180,7 @@ int flushPrimProcBlocks(const BRM::BlockList_t& list)
|
||||
if (list.empty())
|
||||
return 0;
|
||||
|
||||
boost::mutex::scoped_lock lk(CacheOpsMutex);
|
||||
std::unique_lock lk(CacheOpsMutex);
|
||||
|
||||
#if defined(__LP64__) || defined(_WIN64)
|
||||
|
||||
@@ -239,7 +239,7 @@ int flushPrimProcAllverBlocks(const vector<LBID_t>& list)
|
||||
|
||||
try
|
||||
{
|
||||
boost::mutex::scoped_lock lk(CacheOpsMutex);
|
||||
std::unique_lock lk(CacheOpsMutex);
|
||||
rc = sendToAll(bs);
|
||||
return rc;
|
||||
}
|
||||
@@ -258,7 +258,7 @@ int flushOIDsFromCache(const vector<BRM::OID_t>& oids)
|
||||
* uint32_t * - OID array
|
||||
*/
|
||||
|
||||
boost::mutex::scoped_lock lk(CacheOpsMutex, boost::defer_lock_t());
|
||||
std::unique_lock lk(CacheOpsMutex, std::defer_lock);
|
||||
|
||||
ByteStream bs;
|
||||
ISMPacketHeader ism;
|
||||
@@ -287,7 +287,7 @@ int flushPartition(const std::vector<BRM::OID_t>& oids, set<BRM::LogicalPartitio
|
||||
* uint32_t * - OID array
|
||||
*/
|
||||
|
||||
boost::mutex::scoped_lock lk(CacheOpsMutex, boost::defer_lock_t());
|
||||
std::unique_lock lk(CacheOpsMutex, std::defer_lock);
|
||||
|
||||
ByteStream bs;
|
||||
ISMPacketHeader ism;
|
||||
@@ -314,7 +314,7 @@ int dropPrimProcFdCache()
|
||||
|
||||
try
|
||||
{
|
||||
boost::mutex::scoped_lock lk(CacheOpsMutex);
|
||||
std::unique_lock lk(CacheOpsMutex);
|
||||
int rc = sendToAll(bs);
|
||||
return rc;
|
||||
}
|
||||
|
Reference in New Issue
Block a user