• unknown's avatar
    Fix bugs found in previous optimizations. · 949112c1
    unknown authored
    Make rec_get_deleted_flag() return zero/nonzero instead of FALSE/TRUE.
    
    
    innobase/btr/btr0btr.c:
      btr_page_get_sure_split_rec(): Fix bug caused by optimization
      (dereferencing null pointer in page_rec_is_supremum())
      btr_page_insert_fits(): Correct a debug assertion.
    innobase/btr/btr0cur.c:
      Add debug assertions about page_rec_is_comp().
      Add UNIV_LIKELY and UNIV_UNLIKELY hints.
      Note that rec_get_deleted_flag() returns zero/nonzero ulint
      instead of FALSE/TRUE ibool.
    innobase/include/page0page.ic:
      Move debug assertion to proper place.
    innobase/include/rem0rec.h:
      rec_get_deleted_flag(), rec_set_deleted_flag(): Make the flag
      zero/nonzero in order to avoid FALSE/TRUE normalization in
      every rec_get_deleted_flag() call.
    innobase/include/rem0rec.ic:
      rec_get_deleted_flag(), rec_set_deleted_flag(): Make the flag
      zero/nonzero in order to avoid FALSE/TRUE normalization in
      every rec_get_deleted_flag() call.
    innobase/rem/rem0rec.c:
      rec_init_offsets(): Fix bugs introduced in optimization.
    innobase/row/row0sel.c:
      Make debug assertion stricter.
    innobase/row/row0vers.c:
      Note that rec_get_deleted_flag() returns zero/nonzero ulint
      instead of FALSE/TRUE ibool.
    949112c1
row0vers.c 14 KB