• Sergey Petrunya's avatar
    MDEV-3798: EXPLAIN UPDATE/DELETE · 105e3ae6
    Sergey Petrunya authored
    Update the SHOW EXPLAIN code to work with the 
    new architecture (part#1):
    Before, SHOW EXPLAIN operated on real query plan structures, 
    which meant it had to check when SELECTs are created/deleted.
    SELECTs would call apc_target->enable() when they got a query 
    plan and disable() when their query plan was deleted.
    
    Now, Explain data structure becomes available at once (and we
    call apc_target->enable()) and then it stays until it is deleted
    (when that happens, we call apc_target->disable()).
    
    
    
    105e3ae6
sql_insert.cc 141 KB