1. 26 Jul, 2006 2 commits
  2. 24 Jul, 2006 1 commit
    • unknown's avatar
      Post-vacation-musing fixes to WL#3071 "Maria checkpoint": · 1b9e2265
      unknown authored
      changes to how synchronous checkpoint requests are executed.
      changes to how the background LRD flushing thread refrains from using
      all resources. See more comments for each file.
      
      
      storage/maria/checkpoint.c:
        I was not happy that checkpoint requests which want to know the success/error
        of their executed request, get inaccurate information in case of error
        (no error string etc). Instead of implementing a more complete communication
        protocol between requestor and executor, I make the requestor do the
        execution itself. I call this a synchronous checkpoint.
        For asynchronous checkpoints (requestor does not want to know success/error,
        does not want to wait for completion), no change, checkpoint is executed
        by the background thread.
        Comments, constants, mutex usage fixes.
      storage/maria/checkpoint.h:
        new prototype of "API" (the calls exposed by the checkpoint module)
      storage/maria/least_recently_dirtied.c:
        A better solution than sleeping one second after flushing a piece of the
        LRD: instead we pthread_yield(). Hopefully this will slow down the background
        thread (avoiding it using all the disk's bandwidth) if there are other threads 
        competing, and will not slow it down if this thread is alone (where we do
        want it to run fast and not do useless sleeps).
        This thread will probe for asynchronous checkpoint requests every few seconds.
      1b9e2265
  3. 24 May, 2006 2 commits
    • unknown's avatar
      postmerge fix · e8b53e52
      unknown authored
      
      BUILD/SETUP.sh:
        postmerge changes
      configure.in:
        postmerge changes
      mysql-test/r/ps_maria.result:
        changed result according last MyISAM test changes
      e8b53e52
    • unknown's avatar
      Merge sanja.is.com.ua:/home/bell/mysql/bk/work-5.1 · b7ccb354
      unknown authored
      into  sanja.is.com.ua:/home/bell/mysql/bk/work-merge-maria
      
      
      BitKeeper/etc/ignore:
        auto-union
      include/my_base.h:
        Auto merged
      include/myisam.h:
        Auto merged
      mysql-test/mysql-test-run.pl:
        Auto merged
      sql/ha_myisam.cc:
        Auto merged
      sql/item_func.h:
        Auto merged
      sql/mysql_priv.h:
        Auto merged
      sql/mysqld.cc:
        Auto merged
      sql/set_var.h:
        Auto merged
      sql/sql_class.h:
        Auto merged
      storage/csv/ha_tina.cc:
        Auto merged
      storage/myisam/Makefile.am:
        Auto merged
      storage/myisam/ft_boolean_search.c:
        Auto merged
      storage/myisam/ft_nlq_search.c:
        Auto merged
      storage/myisam/ft_parser.c:
        Auto merged
      storage/myisam/ft_update.c:
        Auto merged
      storage/myisam/mi_check.c:
        Auto merged
      storage/myisam/mi_create.c:
        Auto merged
      storage/myisam/mi_dynrec.c:
        Auto merged
      storage/myisam/mi_key.c:
        Auto merged
      storage/myisam/mi_open.c:
        Auto merged
      storage/myisam/mi_packrec.c:
        Auto merged
      storage/myisam/mi_search.c:
        Auto merged
      storage/myisam/mi_test1.c:
        Auto merged
      storage/myisam/mi_test2.c:
        Auto merged
      storage/myisam/myisamchk.c:
        Auto merged
      storage/myisam/myisamlog.c:
        Auto merged
      storage/myisam/myisampack.c:
        Auto merged
      BUILD/SETUP.sh:
        merge
      configure.in:
        merge
      libmysqld/Makefile.am:
        merge
      sql/handler.h:
        merge
      sql/set_var.cc:
        merge
      storage/Makefile.am:
        merge
      storage/myisam/myisamdef.h:
        merge
      b7ccb354
  4. 23 May, 2006 9 commits
    • unknown's avatar
      Merge lmy004.:/work/mysql-5.1-release · cf4447b4
      unknown authored
      into lmy004.:/work/mysql-5.1-release-17619-try3
      
      cf4447b4
    • unknown's avatar
      update log_tables.test so it is less fragile · 2a2e5699
      unknown authored
      
      mysql-test/r/log_tables.result:
        update result so test is less fragile
      mysql-test/t/log_tables.test:
        update test so it is less fragile
      2a2e5699
    • unknown's avatar
      Merge lmy004.:/work/mysql-5.1-release · 655b1492
      unknown authored
      into lmy004.:/work/mysql-5.1-release-17619-try3
      
      655b1492
    • unknown's avatar
      various fixes after push of fix for bug#17619 · f0a73097
      unknown authored
      
      mysql-test/r/not_embedded_server.result:
        update result
      mysql-test/r/sp-threads.result:
        update result
      sql/event_scheduler.h:
        fix build error with SUN compiler
      sql/mysqld.cc:
        fix problem with --init-file which was expecting to be the only running
        thread. nevertheless Events should be started as close as possible to the
        place connections are handled.
      f0a73097
    • unknown's avatar
      Merge lmy004.:/work/mysql-5.1-release · b36c0798
      unknown authored
      into lmy004.:/work/mysql-5.1-release-17619-try3
      
      b36c0798
    • unknown's avatar
      update result · 06ec1db2
      unknown authored
      drop users at the end of events_stress
      
      
      mysql-test/r/ps_1general.result:
        update result
      mysql-test/r/skip_name_resolve.result:
        update result
      mysql-test/r/sp_notembedded.result:
        update result
      mysql-test/r/status.result:
        update result
      mysql-test/t/events_stress.test:
        drop users created in the test
      06ec1db2
    • unknown's avatar
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.1-new · 24aeeb75
      unknown authored
      into  mysql.com:/mnt/raid/MySQL/devel/5.1-rt-wl3158-merged
      
      24aeeb75
    • unknown's avatar
      BUG#20015 mgmsrv and mgmapi: get statport is dead code · 027576c0
      unknown authored
      Remove unused and obsolete mgmapi functionality (that did nothing anyway).
      
      
      storage/ndb/include/mgmapi/mgmapi.h:
        remove dead internal ndb_mgm_get_stat_port function.
      storage/ndb/src/mgmapi/mgmapi.cpp:
        remove ndb_mgm_get_stat_port
        
        was only marked for internal use.
        dead (in 5.0 as well, only removed in 5.1 for safety)
      storage/ndb/src/mgmsrv/Services.cpp:
        remove dead 'get statport'
      storage/ndb/src/mgmsrv/Services.hpp:
        remove dead getStatPort
      027576c0
  5. 22 May, 2006 26 commits
    • unknown's avatar
      Merge lmy004.:/work/mysql-5.1-release · 442d6a9c
      unknown authored
      into lmy004.:/work/mysql-5.1-release-17619-try3
      
      442d6a9c
    • unknown's avatar
      fix endianess on ppc. seems for sys_var_long_ptr we have to fetch · a2ccc647
      unknown authored
      var->save_result.ulonglong_value and not var->save_result.ulong_value
      
      a2ccc647
    • unknown's avatar
      Merge ahristov@bk-internal.mysql.com:/home/bk/mysql-5.1-new · faf7cb17
      unknown authored
      into lmy004.:/work/mysql-5.1-release
      
      faf7cb17
    • unknown's avatar
      fix win32 build after push for bug#17619 · 03142b68
      unknown authored
      
      sql/event_scheduler.cc:
        remove unused variables
        fix win32 build problem - pthread_mutex_lock() is void there
      sql/event_scheduler.h:
        pthread_mutex_lock() is void on win32. This fixes the win32 build.
      sql/event_timed.cc:
        remove unused code & variables
      03142b68
    • unknown's avatar
      d64be046
    • unknown's avatar
      Merge bk-internal:/home/bk/mysql-5.1-new · 9cdb76b5
      unknown authored
      into  shellback.(none):/home/msvensson/mysql/mysql-5.1
      
      9cdb76b5
    • unknown's avatar
      manual merged · e977217e
      unknown authored
      
      libmysqld/Makefile.am:
        Auto merged
      mysql-test/r/events.result:
        Auto merged
      mysql-test/r/events_bugs.result:
        Auto merged
      mysql-test/r/events_logs_tests.result:
        Auto merged
      mysql-test/r/events_microsec.result:
        Auto merged
      sql/CMakeLists.txt:
        Auto merged
      sql/Makefile.am:
        Auto merged
      sql/mysql_priv.h:
        Auto merged
      mysql-test/r/events_stress.result:
        Auto merged
      sql/mysqld.cc:
        Auto merged
      sql/set_var.cc:
        Auto merged
      sql/set_var.h:
        Auto merged
      sql/sql_class.cc:
        Auto merged
      sql/sql_lex.h:
        Auto merged
      sql/sql_parse.cc:
        Auto merged
      sql/sql_show.cc:
        Auto merged
      sql/sql_yacc.yy:
        Auto merged
      sql/share/errmsg.txt:
        Auto merged
      sql/table.cc:
        Auto merged
      e977217e
    • unknown's avatar
      Change = to == in ndbrequire · 6ccb6182
      unknown authored
      6ccb6182
    • unknown's avatar
      Merge shellback.(none):/home/msvensson/mysql/yassl_import/my51-yassl_import · dc18ee14
      unknown authored
      into  shellback.(none):/home/msvensson/mysql/mysql-5.1
      
      dc18ee14
    • unknown's avatar
      Add m4.cpp to CMakeLists.txt for taocrypt · 5af42c57
      unknown authored
      
      extra/yassl/taocrypt/CMakeLists.txt:
        Add md4.cpp
      5af42c57
    • 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
    • unknown's avatar
      Merge bk-internal:/home/bk/mysql-5.1-new · 1933c842
      unknown authored
      into  shellback.(none):/home/msvensson/mysql/mysql-5.1
      
      1933c842
    • unknown's avatar
      Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.1-new · ba5ff73b
      unknown authored
      into  poseidon.ndb.mysql.com:/home/tomas/mysql-5.1-new-ndb
      
      ba5ff73b
    • unknown's avatar
      Merge bk-internal:/home/bk/mysql-5.1-new · 7daaa0ad
      unknown authored
      into  shellback.(none):/home/msvensson/mysql/mysql-5.1
      
      7daaa0ad
    • unknown's avatar
      Merge mysql.com:/home/kgeorge/mysql/5.0/B18745 · 595a4450
      unknown authored
      into  mysql.com:/home/kgeorge/mysql/5.1/B18745
      
      
      mysql-test/r/func_group.result:
        Auto merged
      595a4450
    • unknown's avatar
      Merge poseidon.ndb.mysql.com:/home/tomas/mysql-5.0-main · 53c84338
      unknown authored
      into  poseidon.ndb.mysql.com:/home/tomas/mysql-5.1-new-ndb
      
      
      storage/ndb/src/kernel/vm/Configuration.cpp:
        Auto merged
      53c84338
    • unknown's avatar
      Merge poseidon.ndb.mysql.com:/home/tomas/mysql-5.0 · 2ef88795
      unknown authored
      into  poseidon.ndb.mysql.com:/home/tomas/mysql-5.0-main
      
      2ef88795
    • unknown's avatar
      7965cdcb
    • unknown's avatar
      Merge jonas@perch:src/mysql-5.0 · 09eb3763
      unknown authored
      into  poseidon.ndb.mysql.com:/home/tomas/mysql-5.0-main
      
      09eb3763
    • unknown's avatar
      Merge shellback.(none):/home/msvensson/mysql/yassl_import/my50-yassl_import · 41c74180
      unknown authored
      into  shellback.(none):/home/msvensson/mysql/yassl_import/my51-yassl_import
      
      41c74180
    • unknown's avatar
      Import from yaSSL · 5e1b6209
      unknown authored
      Fixes for HPUX etc. 
      Don't define exceptions operator new on hpux as the linker will look for the function
      
      
      extra/yassl/examples/echoserver/echoserver.cpp:
        Import patch yassl.diff
      extra/yassl/include/openssl/ssl.h:
        Import patch yassl.diff
      extra/yassl/include/socket_wrapper.hpp:
        Import patch yassl.diff
      extra/yassl/src/handshake.cpp:
        Import patch yassl.diff
      extra/yassl/src/socket_wrapper.cpp:
        Import patch yassl.diff
      extra/yassl/src/ssl.cpp:
        Import patch yassl.diff
      extra/yassl/src/template_instnt.cpp:
        Import patch yassl.diff
      extra/yassl/src/timer.cpp:
        Import patch yassl.diff
      extra/yassl/src/yassl_error.cpp:
        Import patch yassl.diff
      extra/yassl/src/yassl_int.cpp:
        Import patch yassl.diff
      extra/yassl/taocrypt/include/block.hpp:
        Import patch yassl.diff
      extra/yassl/taocrypt/include/md4.hpp:
        Import patch yassl.diff
      extra/yassl/taocrypt/include/runtime.hpp:
        Import patch yassl.diff
      extra/yassl/taocrypt/src/md4.cpp:
        Import patch yassl.diff
      extra/yassl/taocrypt/src/template_instnt.cpp:
        Import patch yassl.diff
      extra/yassl/taocrypt/taocrypt.dsp:
        Import patch yassl.diff
      extra/yassl/taocrypt/test/test.cpp:
        Import patch yassl.diff
      extra/yassl/testsuite/test.hpp:
        Import patch yassl.diff
      extra/yassl/mySTL/stdexcept.hpp:
        Don't define exceptions operator new on hpux as the linker will look for the function
      extra/yassl/taocrypt/src/Makefile.am:
        Add md4.cpp to Makefile.am
      5e1b6209
    • unknown's avatar
      Merge mysql.com:/home/stewart/Documents/MySQL/5.0/main · 2b600259
      unknown authored
      into  mysql.com:/home/stewart/Documents/MySQL/5.1/new
      
      
      storage/ndb/src/common/util/socket_io.cpp:
        Auto merged
      2b600259
    • unknown's avatar
      Merge mysql.com:/home/stewart/Documents/MySQL/5.0/bug13987 · d8b05e0b
      unknown authored
      into  mysql.com:/home/stewart/Documents/MySQL/5.0/main
      
      d8b05e0b
    • unknown's avatar
      Bug#18745: Test case 'func_group' fails if "classic" 5.0 configuration · f09e3e94
      unknown authored
      Moved the InnoDB related test from func_group.test to innodb_mysql.test
      
      
      mysql-test/r/func_group.result:
        Moved a test to innodb_mysql
      mysql-test/r/innodb_mysql.result:
        moved a test to innodb_mysql
      mysql-test/t/func_group.test:
        Moved a test to innodb_mysql
      mysql-test/t/innodb_mysql.test:
        Moved a test to innodb_mysql
      f09e3e94
    • unknown's avatar
      Merged. · ddcf1994
      unknown authored
      ddcf1994
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.1-new · e4b94fa0
      unknown authored
      into  mysql.com:/mnt/raid/MySQL/devel/5.1-rt-wl3158-merged
      
      
      BitKeeper/deleted/.del-im_options_set.result~59278f56be61d921:
        Auto merged
      include/my_sys.h:
        Auto merged
      mysql-test/mysql-test-run.pl:
        Auto merged
      BitKeeper/deleted/.del-im_options_unset.result~20a4790cd3c70a4f:
        Auto merged
      mysql-test/r/im_daemon_life_cycle.result:
        Auto merged
      mysql-test/r/im_life_cycle.result:
        Auto merged
      server-tools/instance-manager/Makefile.am:
        Auto merged
      server-tools/instance-manager/mysqlmanager.cc:
        Auto merged
      sql/sp.cc:
        Auto merged
      sql/sp_head.cc:
        Auto merged
      sql/structs.h:
        Auto merged
      mysql-test/r/im_utils.result:
        Auto merged
      server-tools/instance-manager/instance_options.cc:
        Manually merged.
      server-tools/instance-manager/instance_options.h:
        Manually merged.
      server-tools/instance-manager/manager.cc:
        Manually merged.
      server-tools/instance-manager/manager.h:
        Manually merged.
      server-tools/instance-manager/options.cc:
        Manually merged.
      server-tools/instance-manager/options.h:
        Manually merged.
      e4b94fa0