=== modified file 'sql/log.cc' --- sql/log.cc 2010-03-12 10:36:52 +0000 +++ sql/log.cc 2010-03-17 13:57:45 +0000 @@ -4278,6 +4278,7 @@ bool MYSQL_BIN_LOG::write(Log_event *eve */ const char *local_db= event_info->get_db(); if ((thd && !(thd->options & OPTION_BIN_LOG)) || + (local_db) && (!binlog_filter->db_ok(local_db))) { VOID(pthread_mutex_unlock(&LOCK_log));