• marko's avatar
    branches/5.1: In innobase_initialize_autoinc(), do not attempt to read · 6b59c3ae
    marko authored
    the maximum auto-increment value from the table if
    innodb_force_recovery is set to at least 4, so that writes are
    disabled. (Bug #46193)
    
    innobase_get_int_col_max_value(): Move the function definition before
    ha_innobase::innobase_initialize_autoinc(), because that function now
    calls this function.
    
    ha_innobase::innobase_initialize_autoinc(): Change the return type to
    void.  Do not attempt to read the maximum auto-increment value from
    the table if innodb_force_recovery is set to at least 4.  Issue
    ER_AUTOINC_READ_FAILED to the client when the auto-increment value
    cannot be read.
    
    rb://144 by Sunny, revised by Marko
    6b59c3ae
ha_innodb.h 8.99 KB