• unknown's avatar
    Fix for Bug#33065: Mysql not writing general query logs after · d8c8fd5b
    unknown authored
    sending SIGHUP.
    
    There were two problems:
      - after some recent fix, the server started to crash after
        receiving SIGHUP. That happened because LEX of new THD-object
        was not properly initialized.
      - user-specified log options were ignored when logs were reopened.
    
    The fix is to 1) initialize LEX and 2) take user-specified options
    into account.
    
    There is no test case in this CS, because our test suite does not
    support sending SIGHUP to the server.
    
    
    sql/mysqld.cc:
      Use proper logging after SIGHUP.
    sql/sql_parse.cc:
      Initialize LEX of new THD -- it is required to avoid crash
      in SIGHUP handling.
    d8c8fd5b
sql_parse.cc 218 KB