Browse files

always execute FLUSH LOCAL TABLES

This adds FLUSH /*!40101 LOCAL */ TABLES when flush_tables() is
run via the client interface in holland.lib.mysql.  This change
ensures that the FLUSH TABLES command is not written to the binary
log and thus will not replicate down to any replication slaves
that may cause problems, particularly in multi-master environments.
  • Loading branch information...
1 parent b6acceb commit 552ac0c939a365fb930efa8d39cdaa20fc2170bd @abg abg committed Mar 8, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugins/holland.lib.mysql/holland/lib/mysql/client/
@@ -71,7 +71,7 @@ def flush_tables(self):
cursor = self.cursor()
- cursor.execute('FLUSH TABLES')
+ cursor.execute('FLUSH /*!40101 LOCAL */ TABLES')
def flush_tables_with_read_lock(self):

0 comments on commit 552ac0c

Please sign in to comment.