- 22 May, 2006 1 commit
-
-
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.
-
- 16 May, 2006 1 commit
-
-
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
-
- 15 May, 2006 5 commits
-
-
unknown authored
into zippy.(none):/home/cmiller/work/mysql/mysql-5.1-release
-
unknown authored
client/mysql.cc: No longer use the length of data to infer whether it is null.
-
unknown authored
- memset Connection.sessionID_ in Connection contructor - From upstream yaSSL extra/yassl/src/yassl_imp.cpp: Set sessionID_ of Connection to zero when Connection constructor
-
unknown authored
storage/ndb/src/ndbapi/DictCache.cpp: changed dbug printout
-
unknown authored
Bug#16445 ndb, removed workaround in test to see if rewrite of dict cache has worked to remove this bug
-
- 13 May, 2006 1 commit
-
-
unknown authored
Added suppressions for Red Hat AS 4 mysql-test/valgrind.supp: Added suppressions for Red Hat AS 4
-
- 12 May, 2006 1 commit
-
-
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
-
- 11 May, 2006 2 commits
-
-
unknown authored
into mysql.com:/home/bk/b17400-mysql-5.1-new sql/log_event.cc: Auto merged
-
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.
-
- 10 May, 2006 5 commits
-
-
unknown authored
-
unknown authored
unittest/examples/no_plan.t.c: Ensure that the "configure" result is used when compiling this module. unittest/examples/skip_all.t.c: Ensure that the configure result is used when compiling this module. unittest/examples/todo.t.c: Ensure that the configure result is used when compiling this module. unittest/mytap/t/basic.t.c: Ensure that the configure result is used when compiling this module.
-
unknown authored
+ removed extra (not needed) discovery done at online create/drop index
-
unknown authored
-
unknown authored
into poseidon.ndb.mysql.com:/home/tomas/mysql-5.1-new-ndb
-
- 09 May, 2006 4 commits
-
-
unknown authored
-
unknown authored
-
unknown authored
into mysql.com:/home/bk/fix-mysql-5.1-new
-
unknown authored
test rpl_err_ignoredtables. sql/log_event.cc: Clearing tables to lock list in the event of errors. Adding asserts to catch failing to clear the list of tables to lock. Releasing allocated memory if the table will not be replicated. sql/rpl_rli.h: Adding assert to ensure post-condition of clear_tables_to_lock(). Minor rewrites.
-
- 08 May, 2006 8 commits
-
-
unknown authored
libmysqld/Makefile.am: Another undetected typo ...
-
unknown authored
libmysqld/Makefile.am: Silly typo: Lacking a trailing semicolon after shell "if".
-
unknown authored
shell "for" loops without values to loop over cause syntax errors. libmysqld/Makefile.am: Workaround: The variable "$sqlstoragesources" expands to empty, this causes shell errors. The clean solution would be to check the reason for this, whether it will be permanent etc, but for a quick fix it is sufficient to prevent shell syntax errors.
-
unknown authored
-
unknown authored
into poseidon.ndb.mysql.com:/home/tomas/mysql-5.1-new-ndb
-
unknown authored
into poseidon.ndb.mysql.com:/home/tomas/mysql-5.1-new-ndb
-
unknown authored
-
unknown authored
into mysql.com:/home/marty/MySQL/mysql-5.1-new sql/ha_ndbcluster.cc: Auto merged
-
- 06 May, 2006 2 commits
- 05 May, 2006 10 commits
-
-
unknown authored
- ndb system tables not created because of filter, moved chack of filter
-
unknown authored
into mysql.com:/home/my/mysql-5.1 mysql-test/mysql-test-run.pl: Auto merged sql/ha_ndbcluster.cc: Auto merged
-
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)
-
unknown authored
into mysql.com:/home/ndbdev/jmiller/clones/mysql-5.1-new
-
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
-
unknown authored
Bug #18798: mysqld cores on update in ha_ndbcluster call if cluster has failed before, added extra check that transaction is started
-
unknown authored
-
unknown authored
into mysql.com:/home/my/mysql-5.1 sql/ha_ndbcluster.cc: Auto merged mysql-test/t/disabled.def: Manual merge
-
unknown authored
into mysql.com:/home/mydev/mysql-5.1-bug10405
-
unknown authored
-