1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-08 14:22:09 +03:00

Remove boost shared array [develop 23.02] (#2812)

* remove boost/shared_array include

* replace boost::shared_array<T> to std::shared_ptr<T[]>
This commit is contained in:
Leonid Fedorov
2023-04-17 20:56:09 +03:00
committed by GitHub
parent f1697c261e
commit 030144127e
65 changed files with 222 additions and 232 deletions

View File

@@ -119,7 +119,7 @@ const TxnID SessionManager::getTxnID(const SID session)
return ret;
}
boost::shared_array<SIDTIDEntry> SessionManager::SIDTIDMap(int& len)
std::shared_ptr<SIDTIDEntry[]> SessionManager::SIDTIDMap(int& len)
{
// is this cast valid?
return dbrm.SIDTIDMap(len);
@@ -150,7 +150,7 @@ bool SessionManager::checkActiveTransaction(const SID sessionId, bool& bIsDbrmUp
bIsDbrmUp = true;
int arrayLenth = 0;
bool ret = false;
boost::shared_array<SIDTIDEntry> sIDTIDMap;
std::shared_ptr<SIDTIDEntry[]> sIDTIDMap;
sIDTIDMap = SIDTIDMap(arrayLenth);
@@ -178,7 +178,7 @@ bool SessionManager::isTransactionActive(const SID sessionId, bool& bIsDbrmUp)
bIsDbrmUp = true;
int arrayLenth = 0;
bool ret = false;
boost::shared_array<SIDTIDEntry> sIDTIDMap;
std::shared_ptr<SIDTIDEntry[]> sIDTIDMap;
sIDTIDMap = SIDTIDMap(arrayLenth);