mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 06:44:16 +01:00
branches/zip: btr_cur_optimistic_delete(): Note that no further pages
must be latched before calling mtr_commit(mtr) if the function returns TRUE.
This commit is contained in:
parent
1297a39ffe
commit
ba65432056
2 changed files with 8 additions and 2 deletions
|
@ -2722,7 +2722,10 @@ btr_cur_optimistic_delete(
|
|||
delete; cursor stays valid: if deletion
|
||||
succeeds, on function exit it points to the
|
||||
successor of the deleted record */
|
||||
mtr_t* mtr) /* in: mtr */
|
||||
mtr_t* mtr) /* in: mtr; if this function returns
|
||||
TRUE on a leaf page of a secondary
|
||||
index, the mtr must be committed
|
||||
before latching any further pages */
|
||||
{
|
||||
buf_block_t* block;
|
||||
rec_t* rec;
|
||||
|
|
|
@ -353,7 +353,10 @@ btr_cur_optimistic_delete(
|
|||
cursor stays valid: if deletion succeeds,
|
||||
on function exit it points to the successor
|
||||
of the deleted record */
|
||||
mtr_t* mtr); /* in: mtr */
|
||||
mtr_t* mtr); /* in: mtr; if this function returns
|
||||
TRUE on a leaf page of a secondary
|
||||
index, the mtr must be committed
|
||||
before latching any further pages */
|
||||
/*****************************************************************
|
||||
Removes the record on which the tree cursor is positioned. Tries
|
||||
to compress the page if its fillfactor drops below a threshold
|
||||
|
|
Loading…
Add table
Reference in a new issue