You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-01 06:46:55 +03:00
replace boost::shared_array<T> to std::shared_ptr<T[]>
This commit is contained in:
@ -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);
|
||||
|
||||
|
@ -28,7 +28,6 @@
|
||||
|
||||
#include "calpontsystemcatalog.h"
|
||||
#include "brm.h"
|
||||
#include "boost/shared_array.hpp"
|
||||
|
||||
namespace execplan
|
||||
{
|
||||
@ -174,7 +173,7 @@ class SessionManager
|
||||
* @return A pointer to the array. Note: The caller is responsible for
|
||||
* deallocating it. Use delete[].
|
||||
*/
|
||||
boost::shared_array<BRM::SIDTIDEntry> SIDTIDMap(int& len);
|
||||
std::shared_ptr<BRM::SIDTIDEntry[]> SIDTIDMap(int& len);
|
||||
|
||||
/** @brief Returns a unique uint32_t. It eventually wraps around, but who cares.
|
||||
*
|
||||
|
Reference in New Issue
Block a user