=== modified file 'storage/innobase/handler/ha_innodb.cc' --- storage/innobase/handler/ha_innodb.cc 2011-11-16 23:26:16 +0000 +++ storage/innobase/handler/ha_innodb.cc 2011-12-30 10:36:25 +0000 @@ -8159,7 +8159,7 @@ /* Compute the last value in the interval */ next_value = innobase_next_autoinc( - current, need, offset, col_max_value); + current + need - increment, increment, offset, col_max_value); prebuilt->autoinc_last_value = next_value;