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:
marko 2008-12-16 10:14:58 +00:00
parent 1297a39ffe
commit ba65432056
2 changed files with 8 additions and 2 deletions

View file

@ -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;

View file

@ -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