From 32b780b9b3c1ad862689d223fbe6539f478970f0 Mon Sep 17 00:00:00 2001 From: Andrew Hutchings Date: Tue, 22 May 2012 12:04:51 +0100 Subject: [PATCH] Switch to RBR for Gerrit's MySQL binlogs MySQL binlogs are filling up quick due to lots of delete statements during user sync that don't delete any rows. We could test to see if the rows exist first but this would be a performance hit on a script that takes forever to run as it is (plus the new sync script will work differently and not have this problem). Switching to RBR which will only log row changes so will ignore these deletes. Fixes bug #1002550 Change-Id: Ief2097de63bd0a5bde129b72cec87ff3745a6ea1 --- modules/gerrit/files/my.cnf | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/gerrit/files/my.cnf b/modules/gerrit/files/my.cnf index f221959d0c..bd6fde04ce 100644 --- a/modules/gerrit/files/my.cnf +++ b/modules/gerrit/files/my.cnf @@ -92,6 +92,7 @@ server-id = 1 log_bin = /var/log/mysql/mysql-bin.log expire_logs_days = 10 max_binlog_size = 100M +binlog_format = ROW #binlog_do_db = include_database_name #binlog_ignore_db = include_database_name #