• Vladislav Vaintroub's avatar
    MDEV-12445 : Rocksdb does not shutdown worker threads and aborts in memleak... · 6f1f9114
    Vladislav Vaintroub authored
    MDEV-12445 : Rocksdb does not shutdown worker threads and aborts in memleak check on server shutdown
    
    Disable memory leak check in debug server, if rocksdb is loaded.
    There is some subtle bug somewhere in 3rd party code we cannot
    do much about.
    
    The bug is manifested as follows
    
    Rocksdb does not shutdown worker threads, when plugin is shut down. Thus
    OS does not unload the library since there are some active threads using
    this library's code. Thus global destructors in the library do not run,
    and there is still some memory allocated when server exits.
    
    The workaround disables server's memory leak check, if rocksdb engine was
    loaded.
    6f1f9114
ha_rocksdb.cc 358 KB