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
Merge pull request #1405 from jmrojas2332/MCOL-4227-develop
MCOL-4227 Related. Shared storage
This commit is contained in:
@ -302,10 +302,17 @@ fi
|
|||||||
|
|
||||||
systemctl cat mariadb-columnstore.service > /dev/null 2>&1
|
systemctl cat mariadb-columnstore.service > /dev/null 2>&1
|
||||||
if [ $? -eq 0 ] && [ $(running_systemd) -eq 0 ]; then
|
if [ $? -eq 0 ] && [ $(running_systemd) -eq 0 ]; then
|
||||||
echo "Populating the engine initial system catalog."
|
# prevent clusters using shared storage from initializing columnstore more than once
|
||||||
systemctl start mariadb-columnstore
|
IFLAG=/var/lib/columnstore/storagemanager/cs-initialized
|
||||||
sleep 5
|
mkdir -p /var/lib/columnstore/storagemanager
|
||||||
dbbuilder 7 > $tmpDir/dbbuilder.log 2>&1
|
|
||||||
|
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
|
fi
|
||||||
|
|
||||||
if [ $stop_mysqld -eq 1 ];then
|
if [ $stop_mysqld -eq 1 ];then
|
||||||
|
@ -109,6 +109,11 @@ if [ -n "$systemctl" ] && [ $(running_systemd) -eq 0 ]; then
|
|||||||
rm -f /lib/systemd/system/mcs-storagemanager.service
|
rm -f /lib/systemd/system/mcs-storagemanager.service
|
||||||
|
|
||||||
systemctl daemon-reload
|
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
|
else
|
||||||
chkconfig=`which chkconfig 2>/dev/null`
|
chkconfig=`which chkconfig 2>/dev/null`
|
||||||
if [ -n "$chkconfig" ]; then
|
if [ -n "$chkconfig" ]; then
|
||||||
|
Reference in New Issue
Block a user