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

@ -718,7 +718,7 @@ int S3Storage::exists(const string& _key, bool* out)
ms3_st* S3Storage::getConnection()
{
boost::unique_lock<boost::mutex> s(connMutex);
std::unique_lock<std::mutex> s(connMutex);
// prune the list. Most-idle connections are at the back.
timespec now;
@ -810,7 +810,7 @@ void S3Storage::returnConnection(ms3_st* ms3)
conn.conn = ms3;
clock_gettime(CLOCK_MONOTONIC_COARSE, &conn.idleSince);
boost::unique_lock<boost::mutex> s(connMutex);
std::unique_lock<std::mutex> s(connMutex);
freeConns.push_front(conn);
// connMutexes[ms3].unlock();
}