• unknown's avatar
    WL#3072 - Maria Recovery · 69d7db77
    unknown authored
    At the end of recovery, we initialize the transaction manager's
    trid generator with the maximum trid seen during the REDO phase.
    This ensures that trids always grow (needed for versioning),
    even after a crash.
    This patch is only preparation, as ma_recover() is not called
    from ha_maria yet.
    
    
    storage/maria/ha_maria.cc:
      trnman_init() needs argument now (soon trnman_init() will rather
      be done via ma_recover() and thus it will not be 0)
    storage/maria/ma_recovery.c:
      During the REDO phase, remember the max long trid of transactions
      which we have seen (both in the checkpoint record and the
      LOGREC_LONG_TRANSACTION_ID records)
    storage/maria/ma_test1.c:
      trnman_init() needs argument now
    storage/maria/ma_test2.c:
      trnman_init() needs argument now
    storage/maria/trnman.c:
      new argument to trnman_init() so that caller can decide which
      value the generator of trids starts from.
    storage/maria/trnman_public.h:
      trnman_init() needs argument now
    storage/maria/unittest/trnman-t.c:
      trnman_init() needs argument now
    69d7db77
ma_test2.c 32.7 KB