1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

This patch disables FairThreadPool to double check if this feature contributes to multiple strange side-effects and ocassional failed MTR tests

This commit is contained in:
Roman Nozdrin
2022-07-20 11:17:19 +00:00
parent 01f8f7066a
commit b78cbffa93
12 changed files with 76 additions and 252 deletions

View File

@ -35,7 +35,7 @@
#include <map>
#include "service.h"
#include "fair_threadpool.h"
#include "prioritythreadpool.h"
#include "pp_logger.h"
namespace primitiveprocessor
@ -155,12 +155,12 @@ class ServicePrimProc : public Service, public Opt
void LogErrno() override
{
cerr << strerror(errno) << endl;
std::cerr << strerror(errno) << std::endl;
}
void ParentLogChildMessage(const std::string& str) override
{
cout << str << endl;
std::cout << str << std::endl;
}
int Child() override;
int Run()
@ -172,12 +172,12 @@ class ServicePrimProc : public Service, public Opt
return startupRaceFlag_;
}
boost::shared_ptr<threadpool::FairThreadPool> getPrimitiveServerThreadPool()
boost::shared_ptr<threadpool::PriorityThreadPool> getPrimitiveServerThreadPool()
{
return primServerThreadPool;
}
boost::shared_ptr<threadpool::FairThreadPool> getOOBThreadPool()
boost::shared_ptr<threadpool::PriorityThreadPool> getOOBThreadPool()
{
return OOBThreadPool;
}
@ -190,6 +190,6 @@ class ServicePrimProc : public Service, public Opt
static ServicePrimProc* fInstance;
// Since C++20 flag's init value is false.
std::atomic_flag startupRaceFlag_{false};
boost::shared_ptr<threadpool::FairThreadPool> primServerThreadPool;
boost::shared_ptr<threadpool::FairThreadPool> OOBThreadPool;
boost::shared_ptr<threadpool::PriorityThreadPool> primServerThreadPool;
boost::shared_ptr<threadpool::PriorityThreadPool> OOBThreadPool;
};