Skip to content

Commit d8ccc61

Browse files
author
Jan Lindström
committed
MDEV-9663: InnoDB assertion failure: *cursor->index->name == TEMP_INDEX_PREFIX
Add missing instrumentation to row0ins.cc.
1 parent 93326ef commit d8ccc61

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

storage/innobase/row/row0ins.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2918,6 +2918,10 @@ row_ins_sec_index_entry(
29182918
mem_heap_t* offsets_heap;
29192919
mem_heap_t* heap;
29202920

2921+
DBUG_EXECUTE_IF("row_ins_sec_index_entry_timeout", {
2922+
DBUG_SET("-d,row_ins_sec_index_entry_timeout");
2923+
return(DB_LOCK_WAIT);});
2924+
29212925
if (!index->table->foreign_set.empty()) {
29222926
err = row_ins_check_foreign_constraints(index->table, index,
29232927
entry, thr);

storage/xtradb/row/row0ins.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2991,6 +2991,10 @@ row_ins_sec_index_entry(
29912991
mem_heap_t* offsets_heap;
29922992
mem_heap_t* heap;
29932993

2994+
DBUG_EXECUTE_IF("row_ins_sec_index_entry_timeout", {
2995+
DBUG_SET("-d,row_ins_sec_index_entry_timeout");
2996+
return(DB_LOCK_WAIT);});
2997+
29942998
if (!index->table->foreign_set.empty()) {
29952999
err = row_ins_check_foreign_constraints(index->table, index,
29963000
entry, thr);

0 commit comments

Comments
 (0)