MariaDB / mariadb-docker

Docker Official Image packaging for MariaDB
https://mariadb.org
GNU General Public License v2.0
770 stars 438 forks source link

MDEV-28103 container /docker-entrypoint-initdb.d sql on master doesn't replicate #421

Closed grooverdan closed 2 years ago

grooverdan commented 2 years ago

Temporary testing image pushed to quay.io/danielgblack/mariadb-test:10.6-MDEV-28103

summary:

A user wants to initialize the master with a bunch of SQL to be replicated doesn't get binary logged due to the --skip-log-bin on the temporary server start.

The commit that this reverts added the skip-log-bin to speed up timezones. A later commit 013d851b19cee4a109c849bb45ae08ce4c974ac4 speed up the timezone initialization by disabling binary logs when timezones where loaded.

The mariadb-upgrade does set SET SQL_LOG_BIN=0 by default.

As such: Revert "MDEV-27074: disable log-bin during temp server start"

This reverts commit 146e09c9c7aa5d301ac96c1939fdd112f802f4ae.