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
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
|
||||
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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user