Commit e0262fa2 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 8312ea91
......@@ -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
......
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