• Marko Mäkelä's avatar
    MDEV-17750: Avoid some rec_get_offsets() for accessing FTS_DOC_ID · 3773bc59
    Marko Mäkelä authored
    fts_get_max_doc_id(): Remove totally unnecessary call to rec_get_offsets().
    In FTS_DOC_ID_INDEX, the FTS_DOC_ID is always stored in the first 8 bytes
    of the record.
    
    fts_get_doc_id_from_row(): Get the offsets from the caller.
    
    row_ins_foreign_check_on_constraint(): Invoke rec_get_offsets()
    for the call.
    3773bc59
fts0fts.h 32.5 KB