• unknown's avatar
    Bug#35997 Event scheduler seems to let the server crash, if it is embedded. · 3cf9e6eb
    unknown authored
    The event scheduler was not designed to work in embedded mode. This
    patch disables and excludes the event scheduler when the server is
    compiled for embedded build.
    
    
    libmysqld/Makefile.am:
      Reduce the amount of event code in an embedded build.
    mysql-test/t/events_trans.test:
      Disable test if run in embedded mode.
    sql/Makefile.am:
      Introduce definition HAVE_EVENT_SCHEDULER and one new source file.
    sql/event_data_objects.cc:
      Refactor Event_parse_data to new file.
    sql/event_data_objects.h:
      Refactor Event_parse_data to new file.
      Move global definitions to new file.
    sql/event_queue.cc:
      Move all parsed items to Event_parse_data for easier modularization.
    sql/events.cc:
      Move all parsed items to Event_parse_data for easier modularization.
    sql/mysqld.cc:
      Disable the event schedular subsystem if the server is compiled in
      embedded mode.
    sql/set_var.cc:
      Disable the event schedular subsystem if the server is compiled in
      embedded mode.
    sql/set_var.h:
      Disable the event schedular subsystem if the server is compiled in
      embedded mode.
    sql/sql_db.cc:
      Disable the event schedular subsystem if the server is compiled in
      embedded mode.
    sql/sql_parse.cc:
      Disable the event schedular subsystem if the server is compiled in
      embedded mode.
    sql/sql_show.cc:
      Disable the event schedular subsystem if the server is compiled in
      embedded mode.
    sql/sql_test.cc:
      Disable the event schedular subsystem if the server is compiled in
      embedded mode.
    sql/sql_yacc.yy:
      Only include event-code needed for parsing to reduce impact on embedded
      build.
      Move all constants to Event_parse_data class.
    mysql-test/r/events_embedded.result:
      Add test case to make sure the 'event_scheduler' can't be activated
      in embedded mode.
    mysql-test/r/is_embedded.require:
      Add test case to make sure the 'event_scheduler' can't be activated
      in embedded mode.
    mysql-test/t/events_embedded.test:
      Add test case to make sure the 'event_scheduler' can't be activated
      in embedded mode.
    sql/event_parse_data.cc:
      New file. Extracted Event_parse data into a new file.
    sql/event_parse_data.h:
      New file. Extracted Event_parse data into a new file.
    3cf9e6eb
sql_test.cc 15.1 KB