-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pxc 4607 #2018
Pxc 4607 #2018
Conversation
Align privileges assignment as for mysql_user
@ParveezBaig @kamil-holubicki can you check it please ? this should fix the 4067 |
@@ -358,12 +358,14 @@ setup_clone_plugin() | |||
WSREP_OFF="" # joiner does not have replication enabled | |||
fi | |||
$MYSQL_ACLIENT -e "${WSREP_OFF}INSTALL PLUGIN CLONE SONAME 'mysql_clone.so';" | |||
CLEANUP_CLONE_PLUGIN="yes" | |||
if [ "$ROLE" == "donor" ]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not consistent across the script how we do the comparison. Sometimes it is ==
and sometimes it it =
(just 4 lines above).
=
is posix compatible and should be used with single brackets [...]
==
is bash only compatible and should be used with double brackets [[...]]
Would it be possible to have it consistent?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will review all in a different branch/pr
@@ -392,7 +394,7 @@ setup_clone_plugin() | |||
[ "$SERVER_SSL_KEY" = "NULL" ] && SERVER_SSL_KEY= | |||
[ "$SERVER_SSL_CA" = "NULL" ] && SERVER_SSL_CA= | |||
|
|||
if [ "$CLONE_SSL_CERT" = "NULL" -o "$CLONE_SSL_KEY" = "NULL" ] | |||
if [ "$CLONE_SSL_CERT" == "NULL" -o "$CLONE_SSL_CERT" = "" ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mixture of single =
and double ==
in one if
…ction of the code: DROP USER IF EXISTS 'mysql.pxc.sst.user'@'localhost'; $CLEANUP_CLONE_PLUGIN_SQL Just moving the variable in different line fix the issue. this is quick and dirty fix but it works.
Fix for PXC-4607 (synchronize clone plugin persistency)