Skip to content

Commit

Permalink
cleanup: remove innodb-specific code around update_auto_increment()
Browse files Browse the repository at this point in the history
  • Loading branch information
vuvova committed Dec 4, 2023
1 parent 94f2608 commit 4f2d054
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions storage/innobase/handler/ha_innodb.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7887,20 +7887,6 @@ ha_innobase::write_row(
#endif

if ((error_result = update_auto_increment())) {
/* We don't want to mask autoinc overflow errors. */

/* Handle the case where the AUTOINC sub-system
failed during initialization. */
if (m_prebuilt->autoinc_error == DB_UNSUPPORTED) {
error_result = ER_AUTOINC_READ_FAILED;
/* Set the error message to report too. */
my_error(ER_AUTOINC_READ_FAILED, MYF(0));
goto func_exit;
} else if (m_prebuilt->autoinc_error != DB_SUCCESS) {
error = m_prebuilt->autoinc_error;
goto report_error;
}

/* MySQL errors are passed straight back. */
goto func_exit;
}
Expand Down Expand Up @@ -8038,7 +8024,6 @@ ha_innobase::write_row(
}
}

report_error:
/* Cleanup and exit. */
if (error == DB_TABLESPACE_DELETED) {
ib_senderrf(
Expand Down

0 comments on commit 4f2d054

Please sign in to comment.