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

MCOL-4314 shared storage manager prevent data corruption on init

This commit is contained in:
Jose Rojas
2020-09-24 19:49:37 -05:00
parent 040f9fd32c
commit 5fc6885af2

View File

@ -5,7 +5,7 @@
# prevent nodes using shared storage manager from stepping on each other when initializing
# flock will open up an exclusive file lock to run atomic operations
exec {fd_lock}>/var/lib/columnstore/storagemanager/storagemanager-lock
flock -x "$fd_lock"
flock -n "$fd_lock" || exit 0
/bin/systemctl start mcs-workernode
/bin/systemctl start mcs-controllernode