mirror of
https://github.com/MariaDB/server.git
synced 2025-02-02 03:51:50 +01:00
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:
parent
e053f0ad2c
commit
108b2db677
1 changed files with 3 additions and 3 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue