• Sergei Golubchik's avatar
    MDEV-10098 main.create_delayed fails with ps-protocol: assertion... · 9f9eb682
    Sergei Golubchik authored
    MDEV-10098 main.create_delayed fails with ps-protocol: assertion `global_status_var.global_memory_used >= 0' failed
    
    Remove the assert. We cannot verify that
    global_memory_used value is valid (>=0)
    because some of updates are cached in individual THD's
    (e.g. THD1 can have +300 cached, while the other THD2
    can have -300 cached. If the second THD exists before
    the first one, global_memory_used will be -300
    temporarily).
    
    Instead add the assert just before the exit, when all
    THDs been already destroyed.
    9f9eb682
mysqld.cc 343 KB