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