Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (thd_sql_command(user_thd) == SQLCOM_INSERT
- || thd_sql_command(user_thd) == SQLCOM_REPLACE) {
- dict_table_t* ib_table = prebuilt->table;
- /* Acquire the AUTOINC mutex. */
- dict_table_autoinc_lock(ib_table);
- /* We need to check that another transaction isn't
- already holding the AUTOINC lock on the table. */
- if (ib_table->n_waiting_or_granted_auto_inc_locks) {
- /* Release the mutex to avoid deadlocks. */
- dict_table_autoinc_unlock(ib_table);
- } else {
- fprintf(stderr, "fallback ha_innodb.cc\n");
- break; // This happens on MASTER
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement