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.
This commit is contained in:
marko 2008-09-24 10:47:45 +00:00
parent e053f0ad2c
commit 108b2db677

View file

@ -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"