Skip to content

Commit f6f9b7f

Browse files
author
Jan Lindström
committed
MDEV-29707 : Incorrect/bad errno on enabling wsrep_on after setting dummy wsrep_provider on non-Galera build
Fix error message to contain correct errno. This commit was tested interactively because mtr will notice if you provide wrong wsrep_provider in config and you may not change wsrep_provider dynamically.
1 parent 0908a04 commit f6f9b7f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sql/wsrep_var.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,7 @@ bool wsrep_on_update (sys_var *self, THD* thd, enum_var_type var_type)
120120

121121
if (wsrep_init())
122122
{
123-
my_error(ER_CANT_OPEN_LIBRARY, MYF(0), tmp, my_error, "wsrep_init failed");
124-
//rcode= true;
123+
my_error(ER_CANT_OPEN_LIBRARY, MYF(0), tmp, errno, "wsrep_init failed");
125124
saved_wsrep_on= false;
126125
}
127126

0 commit comments

Comments
 (0)