mirror of
https://github.com/vmstan/gravity-sync.git
synced 2024-08-30 18:22:11 +00:00
logic insert
This commit is contained in:
parent
1ef5fec676
commit
c604697d54
@ -426,15 +426,17 @@ function smart_gs {
|
||||
if [ "${PRIDBCHANGE}" != "0" ]
|
||||
then
|
||||
echo "Both sides have changed"
|
||||
exit
|
||||
fi
|
||||
else
|
||||
then
|
||||
if [ "${PRIDBCHANGE}" != "0" ]
|
||||
then
|
||||
echo "Primary has changed"
|
||||
pull_gs_grav
|
||||
PULLRESTART="1"
|
||||
elif [ "${SECDBCHANGE}" != "0" ]
|
||||
then
|
||||
echo "Secondary has changed"
|
||||
push_gs_grav
|
||||
PUSHRESTART="1"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user