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 shared storage manager prevent data corruption on init
This commit is contained in:
@ -5,7 +5,7 @@
|
|||||||
# prevent nodes using shared storage manager from stepping on each other when initializing
|
# 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
|
# flock will open up an exclusive file lock to run atomic operations
|
||||||
exec {fd_lock}>/var/lib/columnstore/storagemanager/storagemanager-lock
|
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-workernode
|
||||||
/bin/systemctl start mcs-controllernode
|
/bin/systemctl start mcs-controllernode
|
||||||
|
Reference in New Issue
Block a user