Commit ba654320 authored by marko's avatar marko

branches/zip: btr_cur_optimistic_delete(): Note that no further pages

must be latched before calling mtr_commit(mtr) if the function returns TRUE.
parent 1297a39f
...@@ -2722,7 +2722,10 @@ btr_cur_optimistic_delete( ...@@ -2722,7 +2722,10 @@ btr_cur_optimistic_delete(
delete; cursor stays valid: if deletion delete; cursor stays valid: if deletion
succeeds, on function exit it points to the succeeds, on function exit it points to the
successor of the deleted record */ 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; buf_block_t* block;
rec_t* rec; rec_t* rec;
......
...@@ -353,7 +353,10 @@ btr_cur_optimistic_delete( ...@@ -353,7 +353,10 @@ btr_cur_optimistic_delete(
cursor stays valid: if deletion succeeds, cursor stays valid: if deletion succeeds,
on function exit it points to the successor on function exit it points to the successor
of the deleted record */ 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 Removes the record on which the tree cursor is positioned. Tries
to compress the page if its fillfactor drops below a threshold to compress the page if its fillfactor drops below a threshold
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment