You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-05 16:15:50 +03:00
MCOL-520 - check storage type before unmount
This commit is contained in:
@@ -1035,10 +1035,20 @@ void ProcessMonitor::processMessage(messageqcpp::ByteStream msg, messageqcpp::IO
|
|||||||
cacheutils::dropPrimProcFdCache();
|
cacheutils::dropPrimProcFdCache();
|
||||||
flushInodeCache();
|
flushInodeCache();
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
string DBRootStorageType = "internal";
|
||||||
|
oam.getSystemConfig("DBRootStorageType", DBRootStorageType);
|
||||||
|
|
||||||
|
if ( DBRootStorageType == "external" )
|
||||||
|
{
|
||||||
string cmd = SUDO + "umount " + startup::StartUp::installDir() + "/data* -l > /dev/null 2>&1";
|
string cmd = SUDO + "umount " + startup::StartUp::installDir() + "/data* -l > /dev/null 2>&1";
|
||||||
|
|
||||||
system(cmd.c_str());
|
system(cmd.c_str());
|
||||||
sleep(1);
|
sleep(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (...) {}
|
||||||
|
|
||||||
system("rpm -e --nodeps $(rpm -qa | grep '^mariadb-columnstore')");
|
system("rpm -e --nodeps $(rpm -qa | grep '^mariadb-columnstore')");
|
||||||
system("dpkg -P $(dpkg --get-selections | grep '^mariadb-columnstore')");
|
system("dpkg -P $(dpkg --get-selections | grep '^mariadb-columnstore')");
|
||||||
|
Reference in New Issue
Block a user