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
fix amazon adddbroot issue
This commit is contained in:
@ -6269,7 +6269,7 @@ namespace oam
|
|||||||
string cmd = startup::StartUp::installDir() + "/bin/columnstore status > /tmp/status.log";
|
string cmd = startup::StartUp::installDir() + "/bin/columnstore status > /tmp/status.log";
|
||||||
system(cmd.c_str());
|
system(cmd.c_str());
|
||||||
if (!checkLogStatus("/tmp/status.log", "MariaDB Columnstore is running") )
|
if (!checkLogStatus("/tmp/status.log", "MariaDB Columnstore is running") )
|
||||||
exceptionControl("setConfig", API_FAILURE);
|
return;
|
||||||
|
|
||||||
//get updated Columnstore.xml distributed
|
//get updated Columnstore.xml distributed
|
||||||
distributeConfigFile("system");
|
distributeConfigFile("system");
|
||||||
@ -6311,7 +6311,7 @@ namespace oam
|
|||||||
string cmd = startup::StartUp::installDir() + "/bin/columnstore status > /tmp/status.log";
|
string cmd = startup::StartUp::installDir() + "/bin/columnstore status > /tmp/status.log";
|
||||||
system(cmd.c_str());
|
system(cmd.c_str());
|
||||||
if (!checkLogStatus("/tmp/status.log", "MariaDB Columnstore is running") )
|
if (!checkLogStatus("/tmp/status.log", "MariaDB Columnstore is running") )
|
||||||
exceptionControl("distributeFstabUpdates", API_FAILURE);
|
return;
|
||||||
|
|
||||||
ACK_FLAG ackflag = oam::ACK_YES;
|
ACK_FLAG ackflag = oam::ACK_YES;
|
||||||
// build and send msg
|
// build and send msg
|
||||||
@ -8552,7 +8552,7 @@ namespace oam
|
|||||||
writeLog("updateFstab called: " + device + ":" + dbrootID, LOG_TYPE_DEBUG );
|
writeLog("updateFstab called: " + device + ":" + dbrootID, LOG_TYPE_DEBUG );
|
||||||
|
|
||||||
//check if entry already exist
|
//check if entry already exist
|
||||||
string cmd = "grep /data" + dbrootID + " /etc/fstab /dev/null 2>&1";
|
string cmd = "grep /data" + dbrootID + " /etc/fstab > /dev/null 2>&1";
|
||||||
int status = system(cmd.c_str());
|
int status = system(cmd.c_str());
|
||||||
if (WEXITSTATUS(status) == 0 )
|
if (WEXITSTATUS(status) == 0 )
|
||||||
return "";
|
return "";
|
||||||
|
Reference in New Issue
Block a user