1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-01 06:46:55 +03:00

Found a bug in IDBPolicy re creating a 'scratch space' dir. It wasn't

checking for errors right, or creating the dir right.
This commit is contained in:
Patrick LeBlanc
2019-06-14 10:10:12 -05:00
parent 029b4a61a8
commit 9e42ddf72c

View File

@ -83,8 +83,15 @@ void IDBPolicy::init( bool bEnableLogging, bool bUseRdwrMemBuffer, const string&
else
{
cout << tmpfilepath << endl;
if (!boost::filesystem::create_directory(tmpfilepath))
bool itWorked = false;
try
{
itWorked = boost::filesystem::create_directories(tmpfilepath);
}
catch (...)
{ }
if (!itWorked)
{
// We failed to create the scratch directory
ostringstream oss;