List:Internals« Previous MessageNext Message »
From:Harrison Fisk Date:June 10 2008 3:56am
Subject:Re: Flush queries being written to the binary log
View as plain text  
Hi Eric,

On Jun 9, 2008, at 6:24 PM, Eric Bergen wrote:

> I know it's the default. I'm just curious what the benefit of writing
> things like flush tables to the log is. It seems like it would cause
> more problems than it solves (does it solve any?).


FLUSH TABLES needs to be replicated for dealing with MERGE tables in  
replication.  For example, if you try to drop a MyISAM table that is  
part of a MERGE on windows, it will give an error unless it has been  
FLUSH TABLE'd first.  So you need to replicate the flush tables and  
then the drop table.  It is still possible to get a race condition  
which results in the error, but helps reduce the chance of it by quite  
a bit.

Regards,

Harrison
-- 
Harrison C. Fisk, MySQL Staff Support Engineer
MySQL @ Sun Microsystems, Inc., http://www.sun.com/mysql/

Thread
Flush queries being written to the binary logEric Bergen9 Jun
  • Re: Flush queries being written to the binary logPaul DuBois10 Jun
    • Re: Flush queries being written to the binary logEric Bergen10 Jun
      • Re: Flush queries being written to the binary logHarrison Fisk10 Jun
      • RE: Flush queries being written to the binary logRick James10 Jun