mirror of
https://github.com/MariaDB/server.git
synced 2025-01-21 22:34:18 +01:00
branches/zip: btr_cur_pessimistic_insert(): For clarity,
use return(DB_...) instead of assigning err = DB_... when possible.
This commit is contained in:
parent
58bea7acaf
commit
8822b4f94f
1 changed files with 2 additions and 6 deletions
|
@ -1293,9 +1293,7 @@ btr_cur_pessimistic_insert(
|
|||
success = fsp_reserve_free_extents(&n_reserved, index->space,
|
||||
n_extents, FSP_NORMAL, mtr);
|
||||
if (!success) {
|
||||
err = DB_OUT_OF_FILE_SPACE;
|
||||
|
||||
return(err);
|
||||
return(DB_OUT_OF_FILE_SPACE);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1386,15 +1384,13 @@ btr_cur_pessimistic_insert(
|
|||
lock_update_insert(btr_cur_get_block(cursor), *rec);
|
||||
}
|
||||
|
||||
err = DB_SUCCESS;
|
||||
|
||||
if (n_extents > 0) {
|
||||
fil_space_release_free_extents(index->space, n_reserved);
|
||||
}
|
||||
|
||||
*big_rec = big_rec_vec;
|
||||
|
||||
return(err);
|
||||
return(DB_SUCCESS);
|
||||
}
|
||||
|
||||
/*==================== B-TREE UPDATE =========================*/
|
||||
|
|
Loading…
Add table
Reference in a new issue