summaryrefslogtreecommitdiff
path: root/storage/xtradb/include/btr0pcur.ic
diff options
context:
space:
mode:
Diffstat (limited to 'storage/xtradb/include/btr0pcur.ic')
-rw-r--r--storage/xtradb/include/btr0pcur.ic16
1 files changed, 16 insertions, 0 deletions
diff --git a/storage/xtradb/include/btr0pcur.ic b/storage/xtradb/include/btr0pcur.ic
index 29f2fc722a2..7e355d3709d 100644
--- a/storage/xtradb/include/btr0pcur.ic
+++ b/storage/xtradb/include/btr0pcur.ic
@@ -588,3 +588,19 @@ btr_pcur_close(
cursor->trx_if_known = NULL;
}
+
+/*********************************************************//**
+Moves the persistent cursor to the infimum record on the same page. */
+UNIV_INLINE
+void
+btr_pcur_move_before_first_on_page(
+/*===============================*/
+ btr_pcur_t* cursor) /*!< in/out: persistent cursor */
+{
+ ut_ad(cursor->latch_mode != BTR_NO_LATCHES);
+
+ page_cur_set_before_first(btr_pcur_get_block(cursor),
+ btr_pcur_get_page_cur(cursor));
+
+ cursor->old_stored = BTR_PCUR_OLD_NOT_STORED;
+}