Merge lp:~tplavcic/percona-server/bug1382069-5.6 into lp:percona-server/5.6
Status: | Merged |
---|---|
Approved by: | Laurynas Biveinis |
Approved revision: | no longer in the source branch. |
Merged at revision: | 687 |
Proposed branch: | lp:~tplavcic/percona-server/bug1382069-5.6 |
Merge into: | lp:percona-server/5.6 |
Diff against target: |
62 lines (+18/-14) 1 file modified
scripts/mysqld_safe.sh (+18/-14) |
To merge this branch: | bzr merge lp:~tplavcic/percona-server/bug1382069-5.6 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Laurynas Biveinis (community) | Approve | ||
Review via email: mp+239019@code.launchpad.net |
Description of the change
Mysqld_safe was loading system jemalloc if installed no matter if user specified another malloc lib - so it was possible that it tries to load 2 libs. Also there was no possibility to disable loading of system jemalloc.
With this change system jemalloc is only loaded if no other lib is specified and if user specifies "malloc-lib=" nothing will be loaded.
Param job is here:
http://
Some testing:
TEST1: nothing in my.cnf (automatically loads system jemalloc)
======
vagrant@
141021 00:47:57 mysqld_safe Adding '/usr/lib/
141021 00:47:57 mysqld_safe Logging to '/var/log/
141021 00:47:57 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
TEST2: malloc-lib= (loads nothing)
======
vagrant@
141021 00:54:35 mysqld_safe Logging to '/var/log/
141021 00:54:35 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
TEST3: malloc-
======
vagrant@
141021 00:55:57 mysqld_safe Adding '/home/
141021 00:55:57 mysqld_safe Logging to '/var/log/
141021 00:55:57 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql