Details
-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 10.1.16
-
Fix Version/s: 10.2.3
-
Component/s: Scripts & Clients
-
Labels:
-
Environment:FreeBSD 10.3
Description
The wsrep_ scripts contain a number of unneccessary bashisms and needlessly require non-base packages on FreeBSD (lsof, bash).
I've created a pull-request for this that removes some of the bashisms, uses the POSIX compat mode of bash or another POSIX compatible shell that is found in "/bin/sh" on any system.
- Non-POSIX "${var}" == "value" -> POSIX "${var}" = "value"
- Don't use arrays
- split using ## and %%
- Use alternative quotes for the FILTERS list
The `wsrep_sst_rsync.sh` script uses `lsof` to find an rsync instance that listens on the configured port. On platforms with BSD netstat that can be accomplished with netstat from the base system. Currently this checks for $OS = FreeBSD but this should work on other BSD's as well.
Attachments
Issue Links
- is duplicated by
-
MDEV-13758 Galera with rsync on FreeBSD broken
-
- Closed
-
- relates to
-
MDEV-26101 Galera WSREP SST broken under FreeBSD
-
- Closed
-
- links to