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

Merge pull request #1405 from jmrojas2332/MCOL-4227-develop

MCOL-4227 Related. Shared storage
This commit is contained in:
Patrick LeBlanc
2020-08-31 16:58:13 -05:00
committed by GitHub
2 changed files with 16 additions and 4 deletions

View File

@ -302,10 +302,17 @@ fi
systemctl cat mariadb-columnstore.service > /dev/null 2>&1
if [ $? -eq 0 ] && [ $(running_systemd) -eq 0 ]; then
echo "Populating the engine initial system catalog."
systemctl start mariadb-columnstore
sleep 5
dbbuilder 7 > $tmpDir/dbbuilder.log 2>&1
# prevent clusters using shared storage from initializing columnstore more than once
IFLAG=/var/lib/columnstore/storagemanager/cs-initialized
mkdir -p /var/lib/columnstore/storagemanager
if [ ! -e $IFLAG ]; then
touch $IFLAG
echo "Populating the engine initial system catalog."
systemctl start mariadb-columnstore
sleep 5
dbbuilder 7 > $tmpDir/dbbuilder.log 2>&1
fi
fi
if [ $stop_mysqld -eq 1 ];then

View File

@ -109,6 +109,11 @@ if [ -n "$systemctl" ] && [ $(running_systemd) -eq 0 ]; then
rm -f /lib/systemd/system/mcs-storagemanager.service
systemctl daemon-reload
# remove flag to prevent clusters using shared storage from initializing columnstore more than once
IFLAG=/var/lib/columnstore/storagemanager/cs-initialized
if [ -e $IFLAG ]; then
rm $IFLAG
fi
else
chkconfig=`which chkconfig 2>/dev/null`
if [ -n "$chkconfig" ]; then