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

MCOL-4314 Fix newly initialized nodes corrupting shared storagemanager.

This commit is contained in:
Jose Rojas
2020-09-29 15:08:03 -05:00
parent 1f1ce5bf07
commit d4b33b072e
2 changed files with 8 additions and 3 deletions

View File

@ -316,9 +316,14 @@ systemctl cat mariadb-columnstore.service > /dev/null 2>&1
if [ $? -eq 0 ] && [ $(running_systemd) -eq 0 ]; then
mkdir -p /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."
systemctl start mariadb-columnstore
# prevent nodes using shared storage manager from stepping on each other when initializing
# 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
if [ $stop_mysqld -eq 1 ];then

View File

@ -110,7 +110,7 @@ if [ -n "$systemctl" ] && [ $(running_systemd) -eq 0 ]; then
systemctl daemon-reload
# 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
rm $IFLAG
fi