• unknown's avatar
    More consistent handling of magic numbers · edc17c00
    unknown authored
    
    innobase/include/data0data.h:
      dtuple_struct:magic_n: Enclose in #ifdef UNIV_DEBUG
    innobase/dict/dict0dict.c:
      Use magic_n only #ifdef UNIV_DEBUG
    innobase/dict/dict0mem.c:
      Use magic_n only #ifdef UNIV_DEBUG
    innobase/ha/hash0hash.c:
      Remove unused functions hash_mutex_enter_all and hash_mutex_exit_all
      Use magic_n only #ifdef UNIV_DEBUG
      Add ut_ad(table->magic_n == HASH_TABLE_MAGIC_N)
    innobase/include/dict0mem.h:
      Use magic_n only #ifdef UNIV_DEBUG
    innobase/include/hash0hash.h:
      Remove unused functions hash_mutex_enter_all and hash_mutex_exit_all
      Use magic_n only #ifdef UNIV_DEBUG
    innobase/include/hash0hash.ic:
      Add ut_ad(table->magic_n == HASH_TABLE_MAGIC_N)
    innobase/include/mtr0mtr.h:
      Use state, magic_n only #ifdef UNIV_DEBUG
    innobase/include/row0ins.h:
      Use magic_n only #ifdef UNIV_DEBUG
    innobase/include/row0upd.h:
      Use magic_n only #ifdef UNIV_DEBUG
    innobase/row/row0ins.c:
      Use magic_n only #ifdef UNIV_DEBUG
      Add ut_ad(node->magic_n == INS_NODE_MAGIC_N)
    innobase/row/row0upd.c:
      Use magic_n only #ifdef UNIV_DEBUG
      Add ut_ad(node->magic_n == UPD_NODE_MAGIC_N)
    innobase/thr/thr0loc.c:
      Use magic_n only #ifdef UNIV_DEBUG
    edc17c00
dict0dict.c 108 KB