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

fix commands again

This commit is contained in:
david hill
2016-05-02 11:35:12 -05:00
parent 3e306bd5bb
commit 1978b58e42
3 changed files with 96 additions and 96 deletions

View File

@@ -715,51 +715,6 @@ int main(int argc, char *argv[])
if ( MySQLRep == "y" )
mysqlRep = true;
string answer = "n";
while(true) {
if ( !mysqlRep )
prompt = "Enable MySQL Replication feature? [y,n] (n) > ";
else
break;
pcommand = callReadline(prompt.c_str());
if (pcommand) {
if (strlen(pcommand) > 0) answer = pcommand;
callFree(pcommand);
}
if ( answer == "y" || answer == "n" ) {
cout << endl;
break;
}
else
cout << "Invalid Entry, please enter 'y' for yes or 'n' for no" << endl;
if ( noPrompting )
exit(1);
}
if ( answer == "y" ) {
mysqlRep = true;
MySQLRep = "y";
}
if ( MySQLRep == "y" )
mysqlRep = true;
else
mysqlRep = false;
try {
sysConfig->setConfig(InstallSection, "PMwithUM", PMwithUM);
}
catch(...)
{}
try {
sysConfig->setConfig(InstallSection, "MySQLRep", MySQLRep);
}
catch(...)
{}
break;
}
default: // normal, separate UM and PM
@@ -825,42 +780,6 @@ int main(int argc, char *argv[])
}
}
if ( !pmwithum )
{
answer = "n";
while(true) {
if ( mysqlRep )
prompt = "Enable MySQL Replication feature? [y,n] (n) > ";
else
break;
pcommand = callReadline(prompt.c_str());
if (pcommand) {
if (strlen(pcommand) > 0) answer = pcommand;
callFree(pcommand);
}
if ( answer == "y" || answer == "n" ) {
cout << endl;
break;
}
else
cout << "Invalid Entry, please enter 'y' for yes or 'n' for no" << endl;
if ( noPrompting )
exit(1);
}
if ( answer == "y" ) {
mysqlRep = true;
MySQLRep = "y";
}
if ( MySQLRep == "y" )
mysqlRep = true;
else
mysqlRep = false;
}
try {
sysConfig->setConfig(InstallSection, "PMwithUM", PMwithUM);
}
@@ -1483,11 +1402,33 @@ int main(int argc, char *argv[])
}
}
if ( moduleType == "pm" )
if ( moduleType == "pm" ) {
pmNumber = moduleCount;
if ( moduleType == "um" )
if ( pmNumber > 1 && ( IserverTypeInstall == oam::INSTALL_COMBINE_DM_UM_PM ) )
{
mysqlRep = true;
try {
sysConfig->setConfig(InstallSection, "MySQLRep", "y");
}
catch(...)
{}
}
}
if ( moduleType == "um" ) {
umNumber = moduleCount;
if ( umNumber > 1 )
{
mysqlRep = true;
try {
sysConfig->setConfig(InstallSection, "MySQLRep", "y");
}
catch(...)
{}
}
}
int moduleID = 1;