mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 11:57:38 +02:00
merge with 5.5
This commit is contained in:
commit
40e94a3734
210 changed files with 5896 additions and 1462 deletions
|
|
@ -3483,11 +3483,18 @@ fail_exit:
|
|||
|
||||
root = ibuf_tree_root_get(&mtr);
|
||||
|
||||
err = btr_cur_pessimistic_insert(BTR_NO_LOCKING_FLAG
|
||||
| BTR_NO_UNDO_LOG_FLAG,
|
||||
cursor,
|
||||
ibuf_entry, &ins_rec,
|
||||
&dummy_big_rec, 0, thr, &mtr);
|
||||
err = btr_cur_optimistic_insert(
|
||||
BTR_NO_LOCKING_FLAG | BTR_NO_UNDO_LOG_FLAG,
|
||||
cursor, ibuf_entry, &ins_rec,
|
||||
&dummy_big_rec, 0, thr, &mtr);
|
||||
|
||||
if (err == DB_FAIL) {
|
||||
err = btr_cur_pessimistic_insert(
|
||||
BTR_NO_LOCKING_FLAG | BTR_NO_UNDO_LOG_FLAG,
|
||||
cursor, ibuf_entry, &ins_rec,
|
||||
&dummy_big_rec, 0, thr, &mtr);
|
||||
}
|
||||
|
||||
mutex_exit(&ibuf_pessimistic_insert_mutex);
|
||||
ibuf_size_update(root, &mtr);
|
||||
mutex_exit(&ibuf_mutex);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue