Commit 79799395 authored by marko's avatar marko

branches/zip: row_undo_mod_del_unmark_sec_and_undo_update():

Return earlier when this function is called on an index that
is being created.  Luckily, mtr_start() does not allocate any
resources.  Thus, there was no memory leak.
parent f56927f7
......@@ -429,15 +429,15 @@ row_undo_mod_del_unmark_sec_and_undo_update(
mtr_t mtr;
trx_t* trx = thr_get_trx(thr);
log_free_check();
mtr_start(&mtr);
/* Ignore indexes that are being created. */
if (UNIV_UNLIKELY(*index->name == TEMP_INDEX_PREFIX)) {
return(DB_SUCCESS);
}
log_free_check();
mtr_start(&mtr);
if (UNIV_UNLIKELY(!row_search_index_entry(index, entry,
mode, &pcur, &mtr))) {
fputs("InnoDB: error in sec index entry del undo in\n"
......
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