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

fix um disk prompt check

This commit is contained in:
david hill
2016-05-09 11:12:18 -05:00
parent 7392ac736c
commit f0d98247c3
2 changed files with 13 additions and 1 deletions

View File

@ -756,6 +756,10 @@ int main(int argc, char *argv[])
mysqlRep = true;
string answer = "n";
cout << "NOTE: Local Query Feature allows the ability to query data from a single Performance" << endl;
cout << " Module" << endl << endl;
while(true) {
if ( pmwithum )
prompt = "Local Query feature is Enabled, Do you want to disable? [y,n] (n) > ";
@ -5073,7 +5077,8 @@ void snmpAppCheck()
cout << endl << "===== Setup the Network Management System (NMS) Server Configuration =====" << endl << endl;
cout << "This would be used to receive SNMP Traps from InfiniDB, 0.0.0.0 defaults to not sending off the system" << endl;
cout << "This would be used to receive SNMP Traps from InfiniDB." << endl;
cout < "0.0.0.0 defaults to not sending off the system" << endl;
prompt = "Enter IP Address(es) of where you want the SNMP Traps went (" + currentNMSIPAddress + ") > ";
pcommand = callReadline(prompt.c_str());
if (pcommand)

View File

@ -5575,6 +5575,9 @@ bool ProcessMonitor::amazonVolumeCheck(int dbrootID)
system(cmd.c_str());
log.writeLog(__LINE__, "mount cmd: " + cmd, LOG_TYPE_DEBUG);
cmd = "chown mysql:mysql -R " + startup::StartUp::installDir() + "/mysql/db";
system(cmd.c_str());
log.writeLog(__LINE__, "amazonVolumeCheck function successfully completed, volume attached: " + volumeName, LOG_TYPE_DEBUG);
return true;
}
@ -5601,6 +5604,10 @@ bool ProcessMonitor::amazonVolumeCheck(int dbrootID)
string cmd = "mount " + deviceName + " " + startup::StartUp::installDir() + "/mysql/db -t ext2 -o defaults > /dev/null";
system(cmd.c_str());
log.writeLog(__LINE__, "mount cmd: " + cmd, LOG_TYPE_DEBUG);
cmd = "chown mysql:mysql -R " + startup::StartUp::installDir() + "/mysql/db";
system(cmd.c_str());
return true;
}
else