• Annamalai Gurusami's avatar
    Bug #12752572 61579: REPLICATION FAILURE WHILE · bcb5d737
    Annamalai Gurusami authored
    INNODB_AUTOINC_LOCK_MODE=1 AND USING TRIGGER
    
    When an insert stmt like "insert into t values (1),(2),(3)" is
    executed, the autoincrement values assigned to these three rows are
    expected to be contiguous.  In the given lock mode
    (innodb_autoinc_lock_mode=1), the auto inc lock will be released
    before the end of the statement.  So to make the autoincrement
    contiguous for a given statement, we need to reserve the auto inc
    values at the beginning of the statement.  
    
    rb://1074 approved by Alexander Nozdrin
    bcb5d737
handler.cc 142 KB