File mariadb-10.2.9-galera_cnf.patch of Package mariadb.9545

PATCH-P1-FIX-FEATURE: Enhance wsrep.cnf (galera configuration file)

wsrep_on option defines whether or not wsrep replication is enabled. 
It's set to OFF by default since MariaDB 10.1 but we want to mention 
this option explicitly in galera configuration file in order to bring
it to the user's attention.
 
Set the location of the wsrep library (wsrep_provider option).

Maintainer: Kristyna Streitova <kstreitova@suse.cz>


Index: mariadb-10.2.22/support-files/wsrep.cnf.sh
===================================================================
--- mariadb-10.2.22.orig/support-files/wsrep.cnf.sh
+++ mariadb-10.2.22/support-files/wsrep.cnf.sh
@@ -33,8 +33,11 @@ bind-address=0.0.0.0
 # Enable wsrep
 wsrep_on=1
 
+# Whether or not wsrep replication is enabled
+wsrep_on=OFF
+
 # Full path to wsrep provider library or 'none'
-wsrep_provider=none
+wsrep_provider=%{_libdir}/galera/libgalera_smm.so
 
 # Provider specific configuration options
 #wsrep_provider_options=