anchor.diff:          raise "Only innodb-flush-method=O_DIRECT or unset is supported!"
       end
     end
  --%>
  +%>
   
   [client]
   port                            = <%= p('cf_mysql.mysql.port') %>
  
positive.code: wsrep_max_ws_size               = <%= p('cf_mysql.mysql.wsrep_max_ws_size') %>
  wsrep_load_data_splitting       = ON
  wsrep_replicate_myisam          = OFF
  <% if p('cf_mysql.mysql.log_conflicts') -%>
  wsrep_log_conflicts             = ON
  <% end -%>
  wsrep_debug                     = <%= p('cf_mysql.mysql.wsrep_debug') %>
  
  # Regular MYSQL options:
  
negative.code: # Slow query logging:
  slow_query_log                  = 1
  slow_query_log_file             = /var/vcap/sys/log/mysql/mysql_slow_query.log
  <% if p('cf_mysql.mysql.log_queries_not_using_indexes') %>
  log_queries_not_using_indexes   = ON
  <% end %>
  
  # User statistics
  <% if p('cf_mysql.mysql.userstat') %>
  userstat                        = 1
  <% end %>
  
  innodb_file_per_table           = ON
  innodb_file_format              = Barracuda
  innodb_log_file_size            = <%= p('cf_mysql.mysql.ib_log_file_size')%>MB
  innodb_support_xa               = OFF
  <% if p('cf_mysql.mysql.innodb_large_prefix_enabled') %>
  innodb_large_prefix             = ON
  <% else %>
  innodb_large_prefix             = OFF
  <% end %>
  <% if p('cf_mysql.mysql.innodb_strict_mode') %>
  innodb_strict_mode              = ON
  <% else %>
  innodb_strict_mode              = OFF
  <% end %>
  
  max_heap_table_size             = <%= p('cf_mysql.mysql.max_heap_table_size') %>
  tmp_table_size                  = <%= p('cf_mysql.mysql.tmp_table_size') %>
  
  <% if_p('cf_mysql.mysql.server_audit_events') do |server_audit_events| %>
  # Audit logging
  plugin-load                     = server_audit=server_audit.so
  server_audit_logging            = ON
  