• Sachin Kumar's avatar
    MDEV-24667 LOAD DATA INFILE on temporary table not written to slave binlog · 9f4ba624
    Sachin Kumar authored
    Problem: In regular replication, when master binlogged using statement format
    slave might not have written an event to its binary log when the Query
    event aimed at a temporary table.
    Specifically this was observed with LOAD DATA INFILE.
    
    This effect was possible because unlike master slave holds temporary
    tables in its pool and the master side check of existence of a
    temporary table at the format bin-logging decision did not apply.
    
    Solution: replace THD::has_thd_temporary_tables() with
    THD::has_temporary_tables which allows to identify temporary table
    presence on either side.
    
    --
    Reviewed by Andrei Elkin.
    9f4ba624
sql_class.h 194 KB