You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-01 06:46:55 +03:00
MCOL-520 - fix non-root supportReport issues
This commit is contained in:
@ -58,6 +58,7 @@ string rootPassword = "";
|
||||
string debug_flag = "0";
|
||||
string mysqlpw = " ";
|
||||
string tmpDir;
|
||||
string ProfileFile;
|
||||
|
||||
int runningThreads = 0;
|
||||
pthread_mutex_t mutex1 = PTHREAD_MUTEX_INITIALIZER;
|
||||
@ -130,9 +131,10 @@ void childReportThread(threadInfo_t& st)
|
||||
|
||||
cout.flush();
|
||||
|
||||
string cmd = installDir + "/bin/remote_command.sh " + remoteModuleIP + " " + rootPassword + " '" +
|
||||
string cmd = installDir + "/bin/remote_command.sh " + remoteModuleIP + " " + rootPassword + " '. " + ProfileFile + ";" +
|
||||
installDir + "/bin/" + reportType + "Report.sh " + remoteModuleName + " " + installDir +
|
||||
"' " + debug_flag + " - forcetty";
|
||||
|
||||
int rtnCode = system(cmd.c_str());
|
||||
|
||||
if (WEXITSTATUS(rtnCode) != 0)
|
||||
@ -669,6 +671,17 @@ int main(int argc, char* argv[])
|
||||
cout << "ERROR: Problem reading the Columnstore System Configuration file" << endl;
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
//Get Profile file
|
||||
try
|
||||
{
|
||||
ProfileFile = sysConfig->getConfig(InstallSection, "ProfileFile");
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
cout << "ERROR: Problem getting ProfileFile" << endl;
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
string ModuleSection = "SystemModuleConfig";
|
||||
|
||||
|
Reference in New Issue
Block a user