36 #define BTR_NO_UNDO_LOG_FLAG 1
37 #define BTR_NO_LOCKING_FLAG 2
38 #define BTR_KEEP_SYS_FLAG 4
41 #ifndef UNIV_HOTBACKUP
47 #define BTR_CUR_HASH_ADAPT
59 # define btr_cur_get_page_cur(cursor) (&(cursor)->page_cur)
127 btr_cur_search_to_nth_level(
154 ulint has_search_latch,
164 btr_cur_open_at_index_side_func(
174 #define btr_cur_open_at_index_side(f,i,l,c,m) \
175 btr_cur_open_at_index_side_func(f,i,l,c,__FILE__,__LINE__,m)
180 btr_cur_open_at_rnd_pos_func(
188 #define btr_cur_open_at_rnd_pos(i,l,c,m) \
189 btr_cur_open_at_rnd_pos_func(i,l,c,__FILE__,__LINE__,m)
199 btr_cur_optimistic_insert(
227 btr_cur_pessimistic_insert(
252 btr_cur_update_alloc_zip(
261 UNIV_WARN_UNUSED_RESULT_NONNULL;
267 btr_cur_update_in_place(
289 btr_cur_optimistic_update(
310 btr_cur_pessimistic_update(
334 btr_cur_del_mark_set_clust_rec(
340 const ulint* offsets,
344 __attribute__((nonnull));
350 btr_cur_del_mark_set_sec_rec(
366 btr_cur_compress_if_useful(
379 btr_cur_optimistic_delete(
399 btr_cur_pessimistic_delete(
406 ibool has_reserved_extents,
422 btr_cur_parse_update_in_place(
435 btr_cur_parse_del_mark_set_clust_rec(
448 btr_cur_parse_del_mark_set_sec_rec(
454 #ifndef UNIV_HOTBACKUP
460 btr_estimate_n_rows_in_range(
476 btr_estimate_number_of_different_key_vals(
492 const ulint* offsets,
495 __attribute__((nonnull(2,3,4,5,6)));
504 btr_store_big_rec_extern_fields_func(
510 const ulint* offsets,
518 #
if defined UNIV_DEBUG || defined UNIV_BLOB_LIGHT_DEBUG
519 ibool update_in_place,
524 __attribute__((nonnull));
540 # define btr_store_big_rec_extern_fields(index,b,rec,offsets,mtr,upd,big) \
541 btr_store_big_rec_extern_fields_func(index,b,rec,offsets,mtr,upd,big)
542 #elif defined UNIV_BLOB_LIGHT_DEBUG
543 # define btr_store_big_rec_extern_fields(index,b,rec,offsets,mtr,upd,big) \
544 btr_store_big_rec_extern_fields_func(index,b,rec,offsets,upd,big)
546 # define btr_store_big_rec_extern_fields(index,b,rec,offsets,mtr,upd,big) \
547 btr_store_big_rec_extern_fields_func(index,b,rec,offsets,big)
557 btr_free_externally_stored_field(
570 const ulint* offsets,
587 btr_copy_externally_stored_field_prefix(
603 btr_rec_copy_externally_stored_field(
607 const ulint* offsets,
620 btr_push_update_extern_fields(
625 __attribute__((nonnull));
631 btr_cur_set_deleted_flag_for_ibuf(
644 #define BTR_CUR_PAGE_COMPRESS_LIMIT (UNIV_PAGE_SIZE / 2)
664 #define BTR_PATH_ARRAY_N_SLOTS 250
667 enum btr_cur_method {
775 #define BTR_CUR_RETRY_DELETE_N_TIMES 100
779 #define BTR_CUR_RETRY_SLEEP_TIME 50000
788 #define BTR_EXTERN_SPACE_ID 0
789 #define BTR_EXTERN_PAGE_NO 4
790 #define BTR_EXTERN_OFFSET 8
792 #define BTR_EXTERN_LEN 12
804 #define BTR_EXTERN_OWNER_FLAG 128
810 #define BTR_EXTERN_INHERITED_FLAG 64
813 extern ulint btr_cur_n_non_sea;
816 extern ulint btr_cur_n_sea;
820 extern ulint btr_cur_n_non_sea_old;
824 extern ulint btr_cur_n_sea_old;
828 #include "btr0cur.ic"