Commit 79eb6e9e authored by marko's avatar marko

branches/zip: row_undo_dictionary(): For TRX_UNDO_INDEX_CREATE_REC,

the index may be NULL when unfinished transactions are rolled back
after crash recovery.
parent da0bcd64
......@@ -614,8 +614,11 @@ row_undo_dictionary(
switch (dict_undo->op_type) {
case TRX_UNDO_INDEX_CREATE_REC:
row_merge_drop_index(dict_undo->data.index,
dict_undo->data.index->table, trx);
if (dict_undo->data.index) {
row_merge_drop_index(dict_undo->data.index,
dict_undo->data.index->table,
trx);
}
break;
/* TODO: We are REDOing the DROP ? */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment