mirror of
https://github.com/MariaDB/server.git
synced 2025-02-02 03:51:50 +01:00
#236 mysqld_safe should use libjemalloc.so if it exists in the tarball
This commit is contained in:
parent
67ec3f3075
commit
8f8cf4aa6e
1 changed files with 4 additions and 0 deletions
|
@ -180,6 +180,10 @@ if [ $startup -ne 0 ] ; then
|
|||
else
|
||||
default_arg="--defaults-file=$defaultsfile"
|
||||
fi
|
||||
j=/usr/local/mysql/lib/mysql/libjemalloc.so
|
||||
if [ -f $j ] ; then
|
||||
default_arg="$default_arg --malloc-lib=$j"
|
||||
fi
|
||||
$sudo -b bash -c "$ldpath /usr/local/mysql/bin/mysqld_safe $default_arg $mysqld_args" >/dev/null 2>&1 &
|
||||
fi
|
||||
sleep $sleeptime
|
||||
|
|
Loading…
Add table
Reference in a new issue