• Marko Mäkelä's avatar
    Bug #12612184 BLOB debug code cleanup: · 7511f401
    Marko Mäkelä authored
    Refactor the !rec_offs_any_extern relaxation in row_build().
    
    trx_assert_active(trx_id): Assert that the given transaction is active.
    (In the 5.1 built-in InnoDB, there is no trx->is_recovered field.)
    
    trx_assert_recovered(trx_id): Assert that the given transaction is
    active and has been recovered after a crash.
    
    row_build(): Replace a bunch of code with an assertion that invokes
    trx_assert_active() or trx_assert_recovered() and row_get_rec_trx_id().
    
    row_get_trx_id_offset(): Make the function inlined. Remove the unused
    parameter rec, and make all parameters const.
    
    row_get_rec_trx_id(), row_get_rec_roll_ptr(): Make all parameters const.
    
    rb:691 approved by Jimmy Yang
    7511f401
trx0sys.h 22.9 KB