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
MCOL-4314 Fix newly initialized nodes corrupting shared storagemanager.
This commit is contained in:
@ -316,9 +316,14 @@ 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
|
||||||
mkdir -p /var/lib/columnstore/storagemanager
|
mkdir -p /var/lib/columnstore/storagemanager
|
||||||
chown -R mysql:mysql /var/lib/columnstore/storagemanager
|
chown -R mysql:mysql /var/lib/columnstore/storagemanager
|
||||||
|
IFLAG=/var/lib/columnstore/storagemanager/storagemanager-lock
|
||||||
|
|
||||||
echo "Populating the engine initial system catalog."
|
# prevent nodes using shared storage manager from stepping on each other when initializing
|
||||||
systemctl start mariadb-columnstore
|
# if storagemanager-lock already exists, we have already initialized
|
||||||
|
if [ ! -e $IFLAG ]; then
|
||||||
|
echo "Populating the engine initial system catalog."
|
||||||
|
systemctl start mariadb-columnstore
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $stop_mysqld -eq 1 ];then
|
if [ $stop_mysqld -eq 1 ];then
|
||||||
|
@ -110,7 +110,7 @@ if [ -n "$systemctl" ] && [ $(running_systemd) -eq 0 ]; then
|
|||||||
|
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
# remove flag to prevent clusters using shared storage from initializing columnstore more than once
|
# remove flag to prevent clusters using shared storage from initializing columnstore more than once
|
||||||
IFLAG=/var/lib/columnstore/storagemanager/cs-initialized
|
IFLAG=/var/lib/columnstore/storagemanager/storagemanager-lock
|
||||||
if [ -e $IFLAG ]; then
|
if [ -e $IFLAG ]; then
|
||||||
rm $IFLAG
|
rm $IFLAG
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user