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

don't create a ResourceManager to initialize a global variable

this is executed when ha_columnstore is loaded, at dlopen time
before any initialization code is run and crashes any dlopen
attemps.

Crashes - because a missing config file is a crashing offence,
but it's an issue for another day
This commit is contained in:
Sergei Golubchik
2019-12-19 19:42:38 +01:00
parent dab1a8b147
commit 96adf535ae
3 changed files with 10 additions and 7 deletions

View File

@ -162,8 +162,8 @@ static const string interval_names[] =
const unsigned NONSUPPORTED_ERR_THRESH = 2000;
ResourceManager* rm = ResourceManager::instance();
bool useHdfs = rm->useHdfs();
// HDFS is never used nowadays, so don't bother
bool useHdfs = false; // ResourceManager::instance()->useHdfs();
//convenience fcn
inline uint32_t tid2sid(const uint32_t tid)