Skip to content

Commit

Permalink
MDEV-27074: disable log-bin during temp server start
Browse files Browse the repository at this point in the history
Not needed and can cause slowness, especially with sync_binlog=1.

Thanks Rob Schwyzer for reporting and testing.
  • Loading branch information
grooverdan committed Dec 8, 2021
1 parent 97f8a56 commit 146e09c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ mysql_get_config() {

# Do a temporary startup of the MariaDB server, for init purposes
docker_temp_server_start() {
"$@" --skip-networking --default-time-zone=SYSTEM --socket="${SOCKET}" --wsrep_on=OFF &
"$@" --skip-networking --default-time-zone=SYSTEM --socket="${SOCKET}" --wsrep_on=OFF --skip-log-bin &
mysql_note "Waiting for server startup"
# only use the root password if the database has already been initializaed
# so that it won't try to fill in a password file when it hasn't been set yet
Expand Down

0 comments on commit 146e09c

Please sign in to comment.