You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +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();
|
||||
flushInodeCache();
|
||||
|
||||
string cmd = SUDO + "umount " + startup::StartUp::installDir() + "/data* -l > /dev/null 2>&1";
|
||||
try
|
||||
{
|
||||
string DBRootStorageType = "internal";
|
||||
oam.getSystemConfig("DBRootStorageType", DBRootStorageType);
|
||||
|
||||
system(cmd.c_str());
|
||||
sleep(1);
|
||||
if ( DBRootStorageType == "external" )
|
||||
{
|
||||
string cmd = SUDO + "umount " + startup::StartUp::installDir() + "/data* -l > /dev/null 2>&1";
|
||||
|
||||
system(cmd.c_str());
|
||||
sleep(1);
|
||||
}
|
||||
}
|
||||
catch (...) {}
|
||||
|
||||
system("rpm -e --nodeps $(rpm -qa | grep '^mariadb-columnstore')");
|
||||
system("dpkg -P $(dpkg --get-selections | grep '^mariadb-columnstore')");
|
||||
|
Reference in New Issue
Block a user