MySQL Forums
Forum List  »  InnoDB

innodb_autoinc_lock_mode = 2 with replication and binlog_format='MIXED'
Posted by: Eyal Sorek
Date: February 05, 2009 09:14AM

Hi,

Is it safe to use innodb_autoinc_lock_mode = 2 with binlog_format='MIXED' and replication ?

When inserting a record with auto inc column, would mysql will switch to row based replication, in this case, and the values generated for the auto inc columns will be deterministic on the master and the salve.

In the doc in 5.2.4.3. Mixed Binary Logging Format:

When running in MIXED mode, automatic switching from statement-based to row-based replication takes place under the following
conditions:
...
• When 2 or more tables with AUTO_INCREMENT columns are updated
...

But it doesn't mention conclusive the scenario I asked above in consistent way.

Thanks,
Eyal.

Options: ReplyQuote


Subject
Views
Written By
Posted
innodb_autoinc_lock_mode = 2 with replication and binlog_format='MIXED'
4190
February 05, 2009 09:14AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.