• marko's avatar
    branches/zip: Fix bugs in the fix of Issue #181. Tested inside and · d25cf617
    marko authored
    outside Valgrind, with innodb_use_sys_malloc set to 0 and 1.
    
    mem_init(): Invoke ut_mem_init() before mem_pool_create(), because
    the latter one will invoke ut_malloc().
    
    srv_general_init(): Do not initialize the memory subsystem (mem_init()).
    
    innobase_init(): Initialize the memory subsystem (mem_init()) before
    calling srv_parse_data_file_paths_and_sizes(), which needs ut_malloc().
    Call ut_free_all_mem() in error handling to clean up after the mem_init().
    d25cf617
ha_innodb.cc 284 KB