• unknown's avatar
    BUG#20821 (INSERT DELAYED fails to write some rows to binlog): · 53def7bd
    unknown authored
    Reverting to old behaviour of writing the query before all rows
    have been written.
    
    
    mysql-test/r/rpl_row_delayed_ins.result:
      Result change
    sql/sql_class.cc:
      Adding debug message to binlog_query()
    sql/sql_insert.cc:
      - Changing write_delayed() to use a LEX_STRING for the query.
      - Adding query string to class delayed_row.
      - Removing query string from class delayed_insert.
      - Adding code to copy query string and delete it when the row
        is executed.
      - Logging query at first row instead of after all rows are 
        inserted (reverting to old behaviour).
      - Flushing the pending row event after all rows have been inserted.
        This is necessary since binlog_query() is called before all rows
        instead of after.
    mysql-test/r/rpl_insert.result:
      New BitKeeper file ``mysql-test/r/rpl_insert.result''
    mysql-test/t/rpl_insert.test:
      New BitKeeper file ``mysql-test/t/rpl_insert.test''
    53def7bd
rpl_insert.test 723 Bytes