1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +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

@ -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

@ -32,7 +32,7 @@
#include <set>
#include <string>
#include <boost/thread.hpp>
#include <boost/shared_array.hpp>
#include <boost/scoped_ptr.hpp>
#include "brmtypes.h"
@ -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

@ -28,7 +28,7 @@
#include <map>
#include <boost/shared_array.hpp>
#include <boost/thread/mutex.hpp>
#include <boost/thread/condition_variable.hpp>
@ -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