You've already forked mariadb-columnstore-engine
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:
@ -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);
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user