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

MCOL-520. Fixed some stuff our older compilers don't like.

This commit is contained in:
Patrick LeBlanc
2018-10-08 15:32:10 -05:00
parent c798d464e0
commit d9aab31afd

View File

@@ -7871,7 +7871,7 @@ void Oam::actionMysqlCalpont(MYSQLCALPONT_ACTION action)
//get pid
cmd = "cat " + InstallDir + "/mysql/db/*.pid > " + pidtmp;
system(cmd.c_str());
ifstream oldFile (pidtmp);
ifstream oldFile(pidtmp.c_str());
//fail if file size 0
oldFile.seekg(0, std::ios::end);
@@ -7930,7 +7930,7 @@ void Oam::actionMysqlCalpont(MYSQLCALPONT_ACTION action)
//get pid
cmd = "cat " + InstallDir + "/mysql/db/*.pid > " + pidtmp;
system(cmd.c_str());
ifstream oldFile (pidtmp);
ifstream oldFile(pidtmp.c_str());
char line[400];
string pid;
@@ -7957,7 +7957,7 @@ void Oam::actionMysqlCalpont(MYSQLCALPONT_ACTION action)
//check if pid has changed
cmd = "cat " + InstallDir + "/mysql/db/*.pid > " + pidtmp;
system(cmd.c_str());
ifstream oldFile (pidtmp);
ifstream oldFile(pidtmp.c_str());
char line[400];
string pid;