1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

replace boost::shared_array<T> to std::shared_ptr<T[]>

This commit is contained in:
Leonid Fedorov
2023-04-14 10:33:27 +00:00
parent a508b86091
commit c2d0fa24da
54 changed files with 190 additions and 200 deletions

View File

@ -3184,7 +3184,7 @@ const TxnID DBRM::getTxnID(const SessionManagerServer::SID session)
return ret;
}
boost::shared_array<SIDTIDEntry> DBRM::SIDTIDMap(int& len)
std::shared_ptr<SIDTIDEntry[]> DBRM::SIDTIDMap(int& len)
{
#ifdef BRM_INFO
@ -3201,7 +3201,7 @@ boost::shared_array<SIDTIDEntry> DBRM::SIDTIDMap(int& len)
uint8_t err, tmp8;
uint32_t tmp32;
int i;
boost::shared_array<SIDTIDEntry> ret;
std::shared_ptr<SIDTIDEntry[]> ret;
command << SID_TID_MAP;
err = send_recv(command, response);

View File

@ -757,7 +757,7 @@ class DBRM
EXPORT void committed(BRM::TxnID& txnid);
EXPORT void rolledback(BRM::TxnID& txnid);
EXPORT const BRM::TxnID getTxnID(const SessionManagerServer::SID session);
EXPORT boost::shared_array<SIDTIDEntry> SIDTIDMap(int& len);
EXPORT std::shared_ptr<SIDTIDEntry[]> SIDTIDMap(int& len);
EXPORT void sessionmanager_reset();
/* Note, these pull #s from two separate sequences. That is, they both

View File

@ -1544,7 +1544,7 @@ void MasterDBRMNode::doSIDTIDMap(ByteStream& msg, ThreadParams* p)
{
ByteStream reply;
int len, i;
boost::shared_array<SIDTIDEntry> entries;
std::shared_ptr<SIDTIDEntry[]> entries;
try
{

View File

@ -346,10 +346,10 @@ const TxnID SessionManagerServer::getTxnID(const SID session)
return ret;
}
shared_array<SIDTIDEntry> SessionManagerServer::SIDTIDMap(int& len)
std::shared_ptr<SIDTIDEntry[]> SessionManagerServer::SIDTIDMap(int& len)
{
int j;
shared_array<SIDTIDEntry> ret;
std::shared_ptr<SIDTIDEntry[]> ret;
boost::mutex::scoped_lock lk(mutex);
iterator it;

View File

@ -193,7 +193,7 @@ class SessionManagerServer
* @return A pointer to the array. Note: The caller is responsible for
* deallocating it. Use delete[].
*/
EXPORT boost::shared_array<SIDTIDEntry> SIDTIDMap(int& len);
EXPORT std::shared_ptr<SIDTIDEntry[]> SIDTIDMap(int& len);
/**
* get a unique 32-bit number