mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 20:07:13 +02:00
Merge a change from mysql-5.1-innodb:
------------------------------------------------------------ revno: 3490 revision-id: marko.makela@oracle.com-20100601120751-1uq7bbta5n7ts0qr parent: marko.makela@oracle.com-20100601120521-q48hk05ne4j1s2o0 committer: Marko Mäkelä <marko.makela@oracle.com> branch nick: 5.1-innodb timestamp: Tue 2010-06-01 15:07:51 +0300 message: Minor cleanup. lock_rec_unlock(): Cache first_lock and rewrite while() loops as for(). btr_cur_optimistic_update(): Use common error handling return. row_create_prebuilt(): Add Valgrind instrumentation.
This commit is contained in:
parent
0902cd6bdd
commit
ab6a5b4724
3 changed files with 23 additions and 29 deletions
|
|
@ -2079,9 +2079,8 @@ any_extern:
|
|||
err = btr_cur_upd_lock_and_undo(flags, cursor, update, cmpl_info,
|
||||
thr, mtr, &roll_ptr);
|
||||
if (err != DB_SUCCESS) {
|
||||
err_exit:
|
||||
mem_heap_free(heap);
|
||||
return(err);
|
||||
|
||||
goto err_exit;
|
||||
}
|
||||
|
||||
/* Ok, we may do the replacement. Store on the page infimum the
|
||||
|
|
@ -2127,9 +2126,10 @@ err_exit:
|
|||
|
||||
page_cur_move_to_next(page_cursor);
|
||||
|
||||
err = DB_SUCCESS;
|
||||
err_exit:
|
||||
mem_heap_free(heap);
|
||||
|
||||
return(DB_SUCCESS);
|
||||
return(err);
|
||||
}
|
||||
|
||||
/*************************************************************//**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue