• Rohit Kalhans's avatar
    BUG#14005409 - 64624 · 781137c0
    Rohit Kalhans authored
          
    Problem: After the fix for Bug#12589870, a new field that
    stores the length of db name was added in the buffer that
    stores the query to be executed. Unlike for the plain user
    session, the replication execution did not allocate the
    necessary chunk in Query-event constructor. This caused an
    invalid read while accessing this field.
          
    Solution: We fix this problem by allocating a necessary chunk
    in the buffer created in the Query_log_event::Query_log_event()
    and store the length of database name.
    
    sql/log_event.cc:
      Added a new field in the buffer created in the
      Query_log_event's constructor and store the length
      of database name.
    781137c0
log_event.cc 313 KB