You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
chore(build) update boost to 1.88
This commit is contained in:
committed by
Leonid Fedorov
parent
d09b7496e4
commit
4a8f5830fd
@ -1,4 +1,4 @@
|
||||
find_package(Boost 1.84.0 COMPONENTS chrono filesystem program_options regex system thread)
|
||||
find_package(Boost 1.88.0 COMPONENTS chrono filesystem program_options regex system thread)
|
||||
|
||||
if(Boost_FOUND)
|
||||
add_custom_target(external_boost)
|
||||
@ -9,9 +9,6 @@ include(ExternalProject)
|
||||
|
||||
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
|
||||
set(_toolset "gcc")
|
||||
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS "9.0")
|
||||
set(_extra "pch=off")
|
||||
endif()
|
||||
elseif(CMAKE_CXX_COMPILER_ID MATCHES ".*Clang")
|
||||
set(_toolset "clang")
|
||||
elseif(CMAKE_CXX_COMPILER_ID MATCHES "Intel")
|
||||
@ -42,8 +39,8 @@ endforeach()
|
||||
ExternalProject_Add(
|
||||
external_boost
|
||||
PREFIX .boost
|
||||
URL https://archives.boost.io/release/1.84.0/source/boost_1_84_0.tar.gz
|
||||
URL_HASH SHA256=a5800f405508f5df8114558ca9855d2640a2de8f0445f051fa1c7c3383045724
|
||||
URL https://archives.boost.io/release/1.88.0/source/boost_1_88_0.tar.gz
|
||||
URL_HASH SHA256=3621533e820dcab1e8012afd583c0c73cf0f77694952b81352bf38c1488f9cb4
|
||||
CONFIGURE_COMMAND ./bootstrap.sh
|
||||
UPDATE_COMMAND ""
|
||||
BUILD_COMMAND ./b2 -q ${_b2args}
|
||||
|
@ -40,8 +40,6 @@ using namespace oam;
|
||||
#include "distributedenginecomm.h"
|
||||
using namespace joblist;
|
||||
|
||||
// #include "boost/filesystem/operations.hpp"
|
||||
// #include "boost/filesystem/path.hpp"
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
#include <boost/scoped_array.hpp>
|
||||
#include <boost/thread.hpp>
|
||||
|
@ -25,8 +25,6 @@
|
||||
#include <string>
|
||||
#include <set>
|
||||
#include <clocale>
|
||||
// #include "boost/filesystem/operations.hpp"
|
||||
// #include "boost/filesystem/path.hpp"
|
||||
using namespace std;
|
||||
|
||||
#include "liboamcpp.h"
|
||||
|
@ -255,11 +255,11 @@ void* reportThread(string* reporttype)
|
||||
boost::filesystem::path configFile =
|
||||
std::string(MCSSYSCONFDIR) + std::string("/columnstore/Columnstore.xml");
|
||||
boost::filesystem::copy_file(configFile, "./Columnstore.xml",
|
||||
boost::filesystem::copy_option::overwrite_if_exists);
|
||||
boost::filesystem::copy_options::overwrite_existing);
|
||||
boost::filesystem::path SMconfigFile =
|
||||
std::string(MCSSYSCONFDIR) + std::string("/columnstore/storagemanager.cnf");
|
||||
boost::filesystem::copy_file(SMconfigFile, "./storagemanager.cnf",
|
||||
boost::filesystem::copy_option::overwrite_if_exists);
|
||||
boost::filesystem::copy_options::overwrite_existing);
|
||||
system("sed -i 's/.*aws_access_key_id.*/aws_access_key_id={PRIVATE}/' ./storagemanager.cnf");
|
||||
system("sed -i 's/.*aws_secret_access_key.*/aws_secret_access_key={PRIVATE}/' ./storagemanager.cnf");
|
||||
fclose(pOutputFile);
|
||||
@ -857,7 +857,7 @@ int main(int argc, char* argv[])
|
||||
|
||||
boost::filesystem::path configFile = std::string(MCSMYCNFDIR) + "/columnstore.cnf";
|
||||
boost::filesystem::copy_file(configFile, "./columnstore.cnf",
|
||||
boost::filesystem::copy_option::overwrite_if_exists);
|
||||
boost::filesystem::copy_options::overwrite_existing);
|
||||
}
|
||||
|
||||
int wait = 0;
|
||||
|
@ -143,7 +143,7 @@ BPPMap bppMap;
|
||||
boost::mutex bppLock;
|
||||
|
||||
boost::mutex djMutex; // lock for djLock, lol.
|
||||
std::map<uint64_t, shared_mutex*> djLock; // djLock synchronizes destroy and joiner msgs, see bug 2619
|
||||
std::map<uint64_t, boost::shared_mutex*> djLock; // djLock synchronizes destroy and joiner msgs, see bug 2619
|
||||
|
||||
volatile int32_t asyncCounter;
|
||||
const int asyncMax = 20; // current number of asynchronous loads
|
||||
@ -1430,7 +1430,7 @@ struct BPPHandler
|
||||
return SBPPV();
|
||||
}
|
||||
|
||||
inline shared_mutex& getDJLock(uint32_t uniqueID)
|
||||
inline boost::shared_mutex& getDJLock(uint32_t uniqueID)
|
||||
{
|
||||
boost::mutex::scoped_lock lk(djMutex);
|
||||
auto it = djLock.find(uniqueID);
|
||||
@ -1438,7 +1438,7 @@ struct BPPHandler
|
||||
return *it->second;
|
||||
else
|
||||
{
|
||||
auto ret = djLock.insert(make_pair(uniqueID, new shared_mutex())).first;
|
||||
auto ret = djLock.insert(make_pair(uniqueID, new boost::shared_mutex())).first;
|
||||
return *ret->second;
|
||||
}
|
||||
}
|
||||
@ -1470,7 +1470,7 @@ struct BPPHandler
|
||||
|
||||
if (bppv)
|
||||
{
|
||||
shared_lock<shared_mutex> lk(getDJLock(uniqueID));
|
||||
boost::shared_lock<boost::shared_mutex> lk(getDJLock(uniqueID));
|
||||
bppv->get()[0]->addToJoiner(bs);
|
||||
return 0;
|
||||
}
|
||||
@ -1513,7 +1513,7 @@ struct BPPHandler
|
||||
}
|
||||
}
|
||||
|
||||
boost::unique_lock<shared_mutex> lk(getDJLock(uniqueID));
|
||||
boost::unique_lock<boost::shared_mutex> lk(getDJLock(uniqueID));
|
||||
for (i = 0; i < bppv->get().size(); i++)
|
||||
{
|
||||
err = bppv->get()[i]->endOfJoiner();
|
||||
@ -1555,7 +1555,12 @@ struct BPPHandler
|
||||
bs >> stepID;
|
||||
bs >> uniqueID;
|
||||
|
||||
boost::shared_ptr<BPPV> bppv = nullptr;
|
||||
boost::unique_lock<boost::shared_mutex> lk(getDJLock(uniqueID));
|
||||
boost::mutex::scoped_lock scoped(bppLock);
|
||||
|
||||
bppKeysIt = std::find(bppKeys.begin(), bppKeys.end(), uniqueID);
|
||||
|
||||
if (bppKeysIt != bppKeys.end())
|
||||
{
|
||||
boost::unique_lock<shared_mutex> lk(getDJLock(uniqueID));
|
||||
boost::mutex::scoped_lock scoped(bppLock);
|
||||
|
@ -94,7 +94,7 @@ inline void LocalStorage::addLatency()
|
||||
int LocalStorage::copy(const bf::path& source, const bf::path& dest)
|
||||
{
|
||||
boost::system::error_code err;
|
||||
bf::copy_file(source, dest, bf::copy_option::fail_if_exists, err);
|
||||
bf::copy_file(source, dest, bf::copy_options::none, err);
|
||||
if (err)
|
||||
{
|
||||
errno = err.value();
|
||||
|
@ -77,7 +77,7 @@ bf::path Ownership::get(const bf::path& p, bool getOwnership)
|
||||
bf::path::const_iterator pit;
|
||||
int i, levels;
|
||||
|
||||
normalizedPath.normalize();
|
||||
normalizedPath.lexically_normal();
|
||||
// cerr << "Ownership::get() param = " << normalizedPath.string() << endl;
|
||||
if (prefixDepth > 0)
|
||||
{
|
||||
|
@ -26,8 +26,8 @@
|
||||
#include <stdexcept>
|
||||
#include <sstream>
|
||||
#include <unistd.h>
|
||||
#include "boost/filesystem/operations.hpp"
|
||||
#include "boost/filesystem/path.hpp"
|
||||
#include "boost/filesystem.hpp"
|
||||
|
||||
using namespace std;
|
||||
|
||||
#include "rwlock.h"
|
||||
|
@ -370,7 +370,7 @@ void Config::writeConfig(const string& configFile) const
|
||||
{
|
||||
}
|
||||
|
||||
fs::copy_file(dcf, scft, fs::copy_option::overwrite_if_exists);
|
||||
fs::copy_file(dcf, scft, fs::copy_options::overwrite_existing);
|
||||
|
||||
try
|
||||
{
|
||||
|
@ -19,8 +19,8 @@
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
#include <boost/filesystem/path.hpp>
|
||||
#include <boost/filesystem/convenience.hpp>
|
||||
#include <boost/thread/thread.hpp>
|
||||
#include <boost/filesystem/operations.hpp>
|
||||
|
||||
#include "configcpp.h" // for Config
|
||||
#include "oamcache.h"
|
||||
|
@ -24,8 +24,7 @@
|
||||
#include <stdio.h>
|
||||
#include <iostream>
|
||||
|
||||
#include <boost/filesystem/path.hpp>
|
||||
#include <boost/filesystem/convenience.hpp>
|
||||
#include <boost/filesystem.hpp>
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
@ -40,7 +40,10 @@
|
||||
#include <boost/interprocess/allocators/allocator.hpp>
|
||||
#include <boost/interprocess/containers/vector.hpp>
|
||||
#include <boost/interprocess/containers/map.hpp>
|
||||
|
||||
|
||||
#include <boost/interprocess/managed_shared_memory.hpp>
|
||||
|
||||
#include <boost/interprocess/mapped_region.hpp>
|
||||
#include <boost/interprocess/shared_memory_object.hpp>
|
||||
#include <boost/unordered_map.hpp>
|
||||
|
@ -34,10 +34,11 @@
|
||||
#include <string.h>
|
||||
#include <vector>
|
||||
#include <sstream>
|
||||
#include <boost/filesystem/path.hpp>
|
||||
#include <boost/filesystem/convenience.hpp>
|
||||
|
||||
#include <boost/filesystem.hpp>
|
||||
#include <boost/uuid/uuid.hpp>
|
||||
#include <boost/uuid/uuid_generators.hpp>
|
||||
|
||||
#include <pwd.h>
|
||||
|
||||
#include "we_bulkstatus.h"
|
||||
|
@ -36,8 +36,7 @@ using namespace std;
|
||||
#include "boost/scoped_array.hpp"
|
||||
#include "boost/thread.hpp"
|
||||
#include "boost/thread/mutex.hpp"
|
||||
#include "boost/filesystem/path.hpp"
|
||||
#include "boost/filesystem/operations.hpp"
|
||||
#include "boost/filesystem.hpp"
|
||||
using namespace boost;
|
||||
|
||||
#include "installdir.h"
|
||||
|
@ -33,8 +33,7 @@ using namespace std;
|
||||
#include "boost/scoped_ptr.hpp"
|
||||
#include "boost/scoped_array.hpp"
|
||||
#include "boost/thread/mutex.hpp"
|
||||
#include "boost/filesystem/path.hpp"
|
||||
#include "boost/filesystem/operations.hpp"
|
||||
#include "boost/filesystem.hpp"
|
||||
using namespace boost;
|
||||
|
||||
#include "mcsconfig.h"
|
||||
|
@ -32,8 +32,7 @@ using namespace std;
|
||||
#include "boost/scoped_ptr.hpp"
|
||||
#include "boost/scoped_array.hpp"
|
||||
#include "boost/thread/mutex.hpp"
|
||||
#include "boost/filesystem/path.hpp"
|
||||
#include "boost/filesystem/operations.hpp"
|
||||
#include "boost/filesystem.hpp"
|
||||
using namespace boost;
|
||||
|
||||
#include "installdir.h"
|
||||
|
@ -19,8 +19,7 @@
|
||||
// $Id: we_ddlcommandproc.cpp 3082 2011-09-26 22:00:38Z chao $
|
||||
|
||||
#include <unistd.h>
|
||||
#include "boost/filesystem/operations.hpp"
|
||||
#include "boost/filesystem/path.hpp"
|
||||
#include "boost/filesystem.hpp"
|
||||
#include "boost/scoped_ptr.hpp"
|
||||
using namespace std;
|
||||
|
||||
|
@ -24,7 +24,6 @@
|
||||
#include <sstream>
|
||||
#include <boost/scoped_array.hpp>
|
||||
#include <boost/filesystem/path.hpp>
|
||||
#include <boost/filesystem/convenience.hpp>
|
||||
|
||||
#include "we_define.h"
|
||||
#include "we_fileop.h"
|
||||
|
@ -20,7 +20,6 @@
|
||||
#include <sstream>
|
||||
#include <boost/scoped_array.hpp>
|
||||
#include <boost/filesystem/path.hpp>
|
||||
#include <boost/filesystem/convenience.hpp>
|
||||
|
||||
#include "we_define.h"
|
||||
#include "we_fileop.h"
|
||||
|
@ -30,7 +30,6 @@
|
||||
#include <boost/scoped_array.hpp>
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
#include <boost/filesystem/path.hpp>
|
||||
#include <boost/filesystem/convenience.hpp>
|
||||
|
||||
#include "we_bulkrollbackmgr.h"
|
||||
|
||||
|
@ -26,7 +26,6 @@
|
||||
#include <sstream>
|
||||
#include <unistd.h>
|
||||
#include <boost/filesystem/path.hpp>
|
||||
#include <boost/filesystem/convenience.hpp>
|
||||
|
||||
#include "we_config.h"
|
||||
#include "we_convertor.h"
|
||||
|
@ -37,9 +37,7 @@
|
||||
#include "we_convertor.h"
|
||||
#include "dataconvert.h"
|
||||
#include <boost/date_time/posix_time/posix_time.hpp>
|
||||
#include <boost/filesystem/path.hpp>
|
||||
#include <boost/filesystem/convenience.hpp>
|
||||
|
||||
#include <boost/filesystem.hpp>
|
||||
#include <sys/time.h>
|
||||
|
||||
using namespace std;
|
||||
|
Reference in New Issue
Block a user