1. 22 May, 2006 1 commit
    • unknown's avatar
      fix for bug #17619 Scheduler race conditions · 6b6a9b76
      unknown authored
      - Scheduler is either initialized at server start or never.
        Starting & stopping is now suspending & resuming.
      - The scheduler has clear OO interface
      - Now all calls to the scheduler are synchronous
      - GLOBAL event_scheduler uses thd::sys_var_tmp (see set_var.cc)
      - External API is encapsulated into class Events
      - Includes fixes for all comments of Kostja's review of 19.05.2005
      
      Starting to merge into 5.1-release (5.1.10) and push
      
      
      BitKeeper/etc/ignore:
        Added libmysqld/event_scheduler.cc to the ignore list
      libmysqld/Makefile.am:
        executor -> scheduler
      mysql-test/r/events.result:
        update result
      mysql-test/r/events_bugs.result:
        update result
      mysql-test/r/events_logs_tests.result:
        update result
      mysql-test/r/events_microsec.result:
        update result
      mysql-test/r/events_scheduling.result:
        update result
      mysql-test/r/events_stress.result:
        update result
      mysql-test/t/disabled.def:
        enable these tests
      mysql-test/t/events.test:
        optimize the test a bit for speed, save some seconds runtime
        remove FULL from SHOW EVENTS
        mostly use I_S.EVENTS
      mysql-test/t/events_bugs.test:
        Skip irrelevant for the current design tests - all events are loaded
        on server startup. Change in mysql.event will be visible on next server start.
        Don't use numeric error codes.
      mysql-test/t/events_logs_tests.test:
        optimize the test a bit for speed
      mysql-test/t/events_microsec.test:
         Skip irrelevant for the current design tests - all events are loaded
            on server startup. Change in mysql.event will be visible on next server start.
            Don't use numeric error codes.
      mysql-test/t/events_scheduling.test:
        broader test
      mysql-test/t/events_stress.test:
        Rework the test to the new architecture of suspending/resuming.
        Use less events, no need for thousands, hundreds is still ok.
      sql/Makefile.am:
        executor -> scheduler
      sql/cmakelists.txt:
        executor -> scheduler
      sql/event.cc:
        - remove todo comments
        - remove unneded evex_queue abstraction functions
        - move events_init() and events_shutdown() from event_executor.cc to here
        - export db_create_event
        - remove evex_load_and_compile_event, part of class Event_scheduler
        - integrate the public interface found in event.h and used by sql_parse.cc
          to use the new class Event_scheduler.
      sql/event.h:
        - add COND_finished so if one thread kills a running event it waits on this
        - export callback event_timed_definer_equal, event_timed_identifier_equal(),
          event_timed_name_equal and event_timed_db_equal()
          to be used by Event_scheduler::drop_matching_events()
        - cleanup event.h
        - encapsulated all external interface into class Events
      sql/event_executor.cc:
        make it empty, will delete after that
      sql/event_priv.h:
        - more things in the private header
        - remove event queue abstraction functions. tightly bind to QUEUE
        - export privately db_drop_event, db_find_event, db_create_event()
        - made change_security_context() and restore_security_context() free functions
      sql/event_timed.cc:
        - fix calculation of time when ENDS is set (STARTS is always set)
        - during Event_timed::compile() set the right Security_ctx. Prevents a crash
              during Event_scheduler::load_events_from_db()
        - add Event_timed::kill_thread()
        - implement event_timed_*_equal()
        - made change_security_context() and restore_security_context() free functions.
        - Comments cleanups
      sql/lex.h:
        new word scheduler for SHOW SCHEDULER STATUS (available only debug builds)
      sql/log.cc:
        move these from event_scheduler.cc
      sql/mysql_priv.h:
        refactor kill_one_thread
        export sql_print_message_func and sql_print_message_handlers
      sql/mysqld.cc:
        In close_connections, called by kill_server() skip the main scheduler
        thread and use events_shutdown() for shutting down the scheduler, in the same
        manner it's done for RPL.
        Add a new value to --event-scheduler :
        0 <- No scheduler available
        1 <- Start with scheduler enabled
        2 <- Start with scheduler suspended
      sql/repl_failsafe.cc:
        refactor thd::system_thread to be an enum
      sql/set_var.cc:
        move sys_var_event_executor::update() to set_var.cc
        executor -> scheduler
        use thd::sys_var_tmp
      sql/set_var.h:
        executor -> scheduler
      sql/share/errmsg.txt:
        3 new error messages
      sql/sql_class.cc:
        refactor thd::system_thread to be an enum . more type-safety
      sql/sql_class.h:
        refactor thd::system_thread to be an enum . more type-safety
      sql/sql_db.cc:
        get the error from evex_drop_schema_events
      sql/sql_error.h:
        export warning_level_names
      sql/sql_lex.h:
        new command SHOW SCHEDULER STATUS, available only in debug build and
        for debug purposes.
      sql/sql_parse.cc:
        refactor kill_one_thread() -> does the *dirty* work, and sql_kill
        just the reporting.
        add handler for SQLCOM_SHOW_SCHEDULER_STATUS
      sql/sql_show.cc:
        fix verbosity handling (this will be obsoleted anyway by the fix for 17394).
      sql/sql_yacc.yy:
        remove FULL from SHOW EVENTS
        add SHOW SCHEDULER STATUS in debug builds
      sql/table.cc:
        Fix valgrind warning.
      6b6a9b76
  2. 16 May, 2006 1 commit
    • unknown's avatar
      mysql.spec.sh: · 18e11fe5
      unknown authored
        Removed Berkeley DB
      configure.in:
        Adjusted Netware support
      basic.t.c:
        Change for Netware
      Makefile.am:
        Use thread safe libmysqlclient_r if it was built
      valgrind.supp:
        Hide report about strlen/_dl_init_paths
      ha_tina.cc:
        Temporarely disable CSV engine on Netware,
        as the engine depends on mmap()
      net_serv.cc:
        Include <sys/select.h> for Netware
      
      
      sql/net_serv.cc:
        Include <sys/select.h> for Netware
      storage/csv/ha_tina.cc:
        Temporarely disable CSV engine on Netware,
        as the engine depends on mmap()
      mysql-test/valgrind.supp:
        Hide report about strlen/_dl_init_paths
      tests/Makefile.am:
        Use thread safe libmysqlclient_r if it was built
      unittest/mytap/t/basic.t.c:
        Change for Netware
      configure.in:
        Adjusted Netware support
      support-files/mysql.spec.sh:
        Removed Berkeley DB
      18e11fe5
  3. 15 May, 2006 5 commits
  4. 13 May, 2006 1 commit
    • unknown's avatar
      valgrind.supp: · 10910ede
      unknown authored
        Added suppressions for Red Hat AS 4
      
      
      mysql-test/valgrind.supp:
        Added suppressions for Red Hat AS 4
      10910ede
  5. 12 May, 2006 1 commit
    • unknown's avatar
      Merge · 95b7c461
      unknown authored
      
      config/ac-macros/ha_ndbcluster.m4:
        Auto merged
      sql/mysqld.cc:
        Auto merged
      sql/sql_class.cc:
        Auto merged
      sql/sql_class.h:
        Auto merged
      sql/sql_parse.cc:
        Auto merged
      sql/log.cc:
        SCCS merged
      sql/sql_base.cc:
        SCCS merged
      95b7c461
  6. 11 May, 2006 2 commits
    • unknown's avatar
      Merge mysqldev@production.mysql.com:my/mysql-5.1-release · 6ca368eb
      unknown authored
      into  mysql.com:/home/bk/b17400-mysql-5.1-new
      
      
      sql/log_event.cc:
        Auto merged
      6ca368eb
    • unknown's avatar
      Bug#17400 (CRBR: Delete and update of table w/o PK fails on slave): · 464538ac
      unknown authored
      Fixing bug where UPDATE failed on slave and some cleanup of ndb_unpack_record().
      
      
      mysql-test/r/rpl_bit_npk.result:
        Result change
      mysql-test/t/disabled.def:
        Disabling tests
      mysql-test/t/rpl_bit_npk.test:
        Making test storage-engine independent
      mysql-test/t/rpl_ndb_innodb2ndb-slave.opt:
        Storage engine name change
      mysql-test/t/rpl_ndb_myisam2ndb-slave.opt:
        Storage engine name change
      sql/ha_ndbcluster.cc:
        Using move_field_offset() to move field pointer.
        Using my_ptrdiff_t instead of uint for pointer difference.
        Removing ineffective cast.
        Calling member function directly, bypassing the virtual mechanism
        for Field_bit.
      sql/log_event.cc:
        Starting and stopping range scan and index read inside find_and_fetch row
        instead of in calling function. There are storage engines that require the
        search to be restarted for every changed row.
      464538ac
  7. 10 May, 2006 5 commits
  8. 09 May, 2006 4 commits
  9. 08 May, 2006 8 commits
  10. 06 May, 2006 2 commits
  11. 05 May, 2006 10 commits
    • unknown's avatar
      Bug #19492 --binlog-do-db option cuases tables create issues for ndb master · 6dd4a381
      unknown authored
      - ndb system tables not created because of filter, moved chack of filter
      
      6dd4a381
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.1-new · 637a4c8b
      unknown authored
      into  mysql.com:/home/my/mysql-5.1
      
      
      mysql-test/mysql-test-run.pl:
        Auto merged
      sql/ha_ndbcluster.cc:
        Auto merged
      637a4c8b
    • unknown's avatar
      Don't use row level logging on optimize or repair table. · 78fcb9a8
      unknown authored
      (Fixes core dump in rpl_failed_optimize.test)
      Ensure we end active transcations if we do an admin command (like optimize, repair etc)
      
      
      mysql-test/extra/rpl_tests/rpl_failed_optimize.test:
        Added extra test + drop of table at end of test
      mysql-test/lib/mtr_report.pl:
        Fail if mysqld asserts or prints stack
      mysql-test/mysql-test-run.sh:
        Fail if mysqld asserts or prints stack
      mysql-test/r/exampledb.result:
        Cleanup of events_tests (as this caused a lot of problems if it didn't work)
      mysql-test/r/innodb.result:
        Extra test to see that we can do an optimize table on an active transaction
      mysql-test/r/rpl_failed_optimize.result:
        Added extra test + drop of table at end of test
      mysql-test/t/exampledb.test:
        Cleanup of events_tests (as this caused a lot of problems if it didn't work)
      mysql-test/t/innodb.test:
        Extra test to see that we can do an optimize table on an active transaction
      sql/handler.cc:
        Don't use row level logging on optimize or repair table.
      sql/log.cc:
        Simplify code (no logic changes)
      sql/mysql_priv.h:
        Added prototype
      sql/sql_base.cc:
        Better name for define
      sql/sql_class.cc:
        Indentation fix
      sql/sql_parse.cc:
        Make end_active_trans() global
      sql/sql_table.cc:
        Ensure we end active transcations if we do an admin command (like optimize, repair etc)
      78fcb9a8
    • unknown's avatar
      Merge jmiller@bk-internal.mysql.com:/home/bk/mysql-5.1-new · fb76d1c1
      unknown authored
      into  mysql.com:/home/ndbdev/jmiller/clones/mysql-5.1-new
      
      fb76d1c1
    • unknown's avatar
      do not install ndb slave if no slaves · 776d8d01
      unknown authored
          fixed memleak in ndbcluster_end
      
      
      mysql-test/mysql-test-run.pl:
        do not install ndb slave if no slaves
      sql/ha_ndbcluster.cc:
        fixed memleak in ndbcluster_end
      776d8d01
    • unknown's avatar
      Bug #18798: mysqld cores on update in ha_ndbcluster call if cluster has failed... · 42d986f7
      unknown authored
      Bug #18798: mysqld cores on update in ha_ndbcluster call if cluster has failed before, added extra check that transaction is started
      
      
      42d986f7
    • unknown's avatar
      Fixed wrong merge · 23c0e79c
      unknown authored
      23c0e79c
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.1-new · fc57480f
      unknown authored
      into  mysql.com:/home/my/mysql-5.1
      
      
      sql/ha_ndbcluster.cc:
        Auto merged
      mysql-test/t/disabled.def:
        Manual merge
      fc57480f
    • unknown's avatar
      Merge mysql.com:/home/mydev/mysql-5.1 · 1beda216
      unknown authored
      into  mysql.com:/home/mydev/mysql-5.1-bug10405
      
      1beda216
    • unknown's avatar
      After merge fix · 1aeffdca
      unknown authored
      1aeffdca