diff --git a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc
index 69dec15..4528f8f 100644
--- a/storage/innobase/handler/ha_innodb.cc
+++ b/storage/innobase/handler/ha_innodb.cc
@@ -10802,7 +10802,7 @@ ha_innobase::get_auto_increment(
/* 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;