Permalink
Browse files

Fix a very dangerous bug around binlog-do-db setting for slave servers

  • Loading branch information...
bensomers committed Dec 13, 2012
1 parent e5606a0 commit 50837ac9d73c61a0ff472a0e05c21e2f17ce8f13
Showing with 4 additions and 1 deletion.
  1. +4 −1 templates/default/my.cnf.slave.erb
@@ -245,10 +245,13 @@ read_only
<% end %>
log_bin = <%= node["percona"]["server"]["datadir"] %>/mysql-bin.log
-binlog-do-db = <%= node["percona"]["server"]["binlog_do_db"] %>
expire_logs_days = <%= node["percona"]["server"]["expire_logs_days"] %>
max_binlog_size = <%= node["percona"]["server"]["max_binlog_size"] %>
+<% node["percona"]["server"]["binlog_do_db"].each do |db_name| %>
+binlog-do-db = <%= db_name %>
+<% end -%>
+
# The size of the cache to hold the SQL statements for the binary log
# during a transaction. If you often use big, multi-statement
# transactions you can increase this value to get more performance. All

0 comments on commit 50837ac

Please sign in to comment.