1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-05 16:15:50 +03:00

Revert "No boost condition (#2822)" (#2828)

This reverts commit f916e64927.
This commit is contained in:
Roman Nozdrin
2023-04-22 13:49:50 +01:00
committed by GitHub
parent f916e64927
commit 4fe9cd64a3
245 changed files with 2007 additions and 1261 deletions

View File

@@ -718,7 +718,7 @@ int S3Storage::exists(const string& _key, bool* out)
ms3_st* S3Storage::getConnection()
{
std::unique_lock<std::mutex> s(connMutex);
boost::unique_lock<boost::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);
std::unique_lock<std::mutex> s(connMutex);
boost::unique_lock<boost::mutex> s(connMutex);
freeConns.push_front(conn);
// connMutexes[ms3].unlock();
}