1. 14 Sep, 2006 2 commits
  2. 13 Sep, 2006 1 commit
    • unknown's avatar
      event_queue.cc: · b0220fb3
      unknown authored
        fix sigsegv
      
      
      sql/event_queue.cc:
        fix sigsegv
      b0220fb3
  3. 12 Sep, 2006 4 commits
    • unknown's avatar
      ws fix · d46921ae
      unknown authored
      
      sql/events.h:
        additional line
      d46921ae
    • unknown's avatar
      remove warning · 62188958
      unknown authored
      62188958
    • unknown's avatar
      correct prototype · c47ce44b
      unknown authored
      c47ce44b
    • unknown's avatar
      WL#3337 (Event scheduler new architecture) · 04a5f335
      unknown authored
      Remove SHOW SCHEDULER STATUS command and migrate the
      information output to `mysqladmin debug` (COM_DEBUG)
      
      SHOW SCHEDULER STATUS was introduced in 5.1.11, provided
      some debug information about event scheduler internals and
      was enabled only in debug builds.
      
      
      sql/event_queue.cc:
        Remove SHOW SCHEDULER STATUS. Reporting still will be
        there but through COM_DEBUG (mysqladmin debug)
      sql/event_queue.h:
        dump_internal_status cannot return an error, therefore it
        should be void.
      sql/event_scheduler.cc:
        Remove SHOW SCHEDULER STATUS. Reporting still will be
        there but through COM_DEBUG (mysqladmin debug)
      sql/event_scheduler.h:
        dump_internal_status cannot return an error, therefore it
        should be void.
      sql/events.cc:
        Change from outputting the internal data from
        the wire to the standard output. SHOW SCHEDULER STATUS was
        removed.
      sql/events.h:
        dump_internal_status() cannot return an error, therefore
        it should be void
      sql/lex.h:
        remove SCHEDULER as recognized word. This is part
        of removing SHOW SCHEDULER STATUS
      sql/sp_head.cc:
        SQLCOM_SHOW_SCHEDULER_STATUS has been removed
      sql/sql_lex.h:
        SQLCOM_SHOW_SCHEDULER_STATUS has been removed
      sql/sql_parse.cc:
        SQLCOM_SHOW_SCHEDULER_STATUS has been removed
      sql/sql_test.cc:
        Dump Events' internal information on COM_DEBUG
      sql/sql_yacc.yy:
        SQLCOM_SHOW_SCHEDULER_STATUS has been removed
      04a5f335
  4. 07 Sep, 2006 1 commit
  5. 06 Sep, 2006 1 commit
    • unknown's avatar
      Merge bk-internal.mysql.com:/data0/bk/mysql-5.1-runtime · 23a46f41
      unknown authored
      into  bk-internal.mysql.com:/data0/bk/mysql-5.1-wl3337
      
      
      client/mysqltest.c:
        Auto merged
      libmysqld/Makefile.am:
        Auto merged
      mysql-test/mysql-test-run.pl:
        Auto merged
      mysql-test/r/events.result:
        Auto merged
      mysql-test/r/not_embedded_server.result:
        Auto merged
      mysql-test/t/events.test:
        Auto merged
      sql/CMakeLists.txt:
        Auto merged
      sql/Makefile.am:
        Auto merged
      sql/mysqld.cc:
        Auto merged
      sql/set_var.cc:
        Auto merged
      sql/sp_head.cc:
        Auto merged
      sql/sql_class.cc:
        Auto merged
      sql/sql_lex.cc:
        Auto merged
      sql/sql_parse.cc:
        Auto merged
      sql/sql_show.cc:
        Auto merged
      sql/sql_yacc.yy:
        Auto merged
      sql/table.cc:
        Auto merged
      sql/table.h:
        Auto merged
      23a46f41
  6. 01 Sep, 2006 8 commits
    • unknown's avatar
      Merge alik.:/mnt/raid/alik/MySQL/devel/5.1-tree · d57163fc
      unknown authored
      into  alik.:/mnt/raid/alik/MySQL/devel/5.1-rt-merged
      
      
      mysql-test/t/disabled.def:
        SCCS merged
      d57163fc
    • unknown's avatar
      remove unused artifacts · e22b6703
      unknown authored
      
      sql/event_db_repository.cc:
        remove unused variables - reported by MS compiler
      sql/event_queue.cc:
        remove unused variables - reported by MS compiler
      sql/event_scheduler.cc:
        remove unused label
      sql/events.cc:
        remove unused variable and a label - reported by MS compiler
      e22b6703
    • unknown's avatar
      fix build failure on SLES9 · 2fc8b30e
      unknown authored
      2fc8b30e
    • unknown's avatar
      post-merge fix · c67c49fc
      unknown authored
      
      sql/event_scheduler.cc:
        fix typo
      sql/events.cc:
        This check is not needed since UNINITIALIZED state was introduced
        in the Event_scheduler
      c67c49fc
    • unknown's avatar
      Merge ahristov@bk-internal.mysql.com:/home/bk/mysql-5.1-wl3337 · 33b8dbc7
      unknown authored
      into  example.com:/work/mysql-5.1-runtime-wl3337
      
      
      sql/events.cc:
        Auto merged
      33b8dbc7
    • unknown's avatar
      WL#3337 (Event scheduler new architecture) · da4734c3
      unknown authored
      This is a post-review patch.
      
      Fixes the typelib implementation, available only in 5.1.11.
      
      --event-scheduler cmdline : DISABLED | ON | OFF | 0 | 1
      DISABLED - makes the scheduler unavailable during the server run
      (ON|1)-  When the server is started the scheduler will be started. It can
               be stopped and restarted by setting appropriate values to
               GLOBAL event_scheduler
      (OFF|0)- When the server is started, the scheduler won't be started. It
               can be started and again stopped by setting appropriate values to
               GLOBAL event_scheduler. _DEFAULT_ value
      
      The GLOBAL variable event_scheduler can have the following values:
      OFF | ON | 0 | 1
      DISABLED is not possible and every attempt will end with an error that
      it's not a valid value for the variable.
      OFF | 0 - This is the pre-5.1.11 behavior - The scheduler stops, if not
                already stopped, and can be started again  by setting
                the value of the variable to ON|1.
      ON | 1  - This is the pre-5.1.11 behavior - The scheduler starts, if not
                already started, and can be stopped again by setting the value
                of the variable to OFF|0.
      
      
      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_restart_phase1.result:
        update result
      mysql-test/r/events_restart_phase3.result:
        update result
      mysql-test/r/events_scheduling.result:
        update result
      mysql-test/r/events_stress.result:
        update result
      mysql-test/t/events.test:
        update test:
        2 -> off
        1 -> on
      mysql-test/t/events_bugs.test:
        update test:
        2 -> off
        1 -> on
      mysql-test/t/events_logs_tests.test:
        update test:
        2 -> off
        1 -> on
      mysql-test/t/events_restart_phase1.test:
        update test:
        2 -> off
        1 -> on
      mysql-test/t/events_restart_phase2-master.opt:
        update master file : 1 => on
      mysql-test/t/events_scheduling.test:
        update test:
        2 -> off
        1 -> on
        
        add tests for event_scheduler global variable representation from
        SHOW VARIABLES.
      mysql-test/t/events_stress.test:
        update test:
        2 -> off
        1 -> on
      sql/events.cc:
        Implement two different TYPELIBs for --event-scheduler cmd line
        option and for GLOBAL variable event_scheduler
        
        --event-scheduler cmdline : DISABLED | ON | OFF | 0 | 1
        DISABLED - makes the scheduler unavailable during the server run
        (ON|1)-  When the server is started the scheduler will be started. It can
                 be stopped and restarted by setting appropriate values to
                 GLOBAL event_scheduler
        (OFF|0)- When the server is started, the scheduler won't be started. It
                 can be started and again stopped by setting appropriate values to
                 GLOBAL event_scheduler. _DEFAULT_ value
        
        The GLOBAL variable event_scheduler can have the following values:
        OFF | ON | 0 | 1
        DISABLED is not possible and every attempt will end with an error that
        it's not a valid value for the variable.
        OFF | 0 - This is the pre-5.1.11 behavior - The scheduler stops, if not
                  already stopped, and can be started again  by setting
                  the value of the variable to ON|1.
        ON | 1  - This is the pre-5.1.11 behavior - The scheduler starts, if not
                  already started, and can be stopped again by setting the value
                  of the variable to OFF|0.
      sql/events.h:
        additional TYPELIB for GLOBAL event_scheduler
      sql/mysqld.cc:
        --event-scheduler should be checked against a TYPELIB and
        therefore should be GET_STR, as well as we make the parameter optional.
        When not provided OFF|0 is used.
      sql/set_var.cc:
        Implement typelib for event_scheduler variable.
        If allows both INT_RESULT -> 0 | 1 
        and STRING_RESULT -> OFF | ON
        The variable is shown as DISABLED | ON | OFF
      sql/set_var.h:
        Implement typelib, which expects both STRING and INT,
        for event_scheduler.
      da4734c3
    • unknown's avatar
      Merge moonbone.local:/home/evgen/bk-trees/mysql-5.1-opt · 16de51bc
      unknown authored
      into  moonbone.local:/work/tmp_merge-5.1-mysql
      
      
      sql/item.cc:
        Auto merged
      sql/item.h:
        Auto merged
      sql/item_cmpfunc.cc:
        Auto merged
      sql/item_func.cc:
        Auto merged
      sql/mysql_priv.h:
        Auto merged
      sql/sql_acl.cc:
        Auto merged
      sql/sql_class.cc:
        Auto merged
      sql/sql_parse.cc:
        Auto merged
      mysql-test/r/view.result:
        SCCS merged
      mysql-test/t/view.test:
        SCCS merged
      16de51bc
    • unknown's avatar
      Removed Windows from tests since bug#19107 is known to hang test · 22d76f5a
      unknown authored
      
      mysql-test/t/disabled.def:
        Removed disabled test since it only affects Windows
      mysql-test/t/partition.test:
        Removed Windows from test since bug#19107 is known to hang test
      mysql-test/t/partition_mgm_err2.test:
        Removed Windows from test since bug#19107 is known to hang test
      22d76f5a
  7. 31 Aug, 2006 17 commits
    • unknown's avatar
      Merge dator5.(none):/home/pappa/clean-mysql-5.1-new-ndb · c8e4fe09
      unknown authored
      into  dator5.(none):/home/pappa/push_clone
      
      
      sql/sql_show.cc:
        Auto merged
      storage/ndb/src/kernel/blocks/dbdih/DbdihMain.cpp:
        Auto merged
      mysql-test/t/disabled.def:
        manual merge
      c8e4fe09
    • unknown's avatar
      Merge dator5.(none):/home/pappa/clean-mysql-5.1-kt · ab72c347
      unknown authored
      into  dator5.(none):/home/pappa/push_clone
      
      
      sql/share/errmsg.txt:
        Auto merged
      ab72c347
    • unknown's avatar
      Merge ahristov@bk-internal.mysql.com:/home/bk/mysql-5.1-wl3337 · bbd8f9ac
      unknown authored
      into  fifo.vaih.whnetz:/work/mysql-5.1-wl3337-tree2
      
      
      sql/events.cc:
        Auto merged
      bbd8f9ac
    • unknown's avatar
      WL#3337 (Event scheduler new architecture) · 0410cc3a
      unknown authored
      This patch makes the relationship between Event_scheduler and Event_queue
      unidirectional from the former to the latter.
      
      
      
      
      The change is that the conditional on which the scheduler sleeped has been
      moved to the Event_queue and the latter does not call anymore
      Event_scheduler::queue_changed(), which in turn has be removed.
      
      
      sql/event_queue.cc:
        Remove dependency of Event_queue on Event_scheduler but not vice versa.
        Event_scheduler polls whether there is time to execute an event.
        
        Removed notify_observers() as the way of calling has changed.
        Added Event_queue::cond_wait() similar to Event_scheduler::cond_wait().
      sql/event_queue.h:
        init_queue() does not need anymore Event_scheduler object because
        the relationship is now one-way. Event_scheduler knows about Event_queue
        but not vice versa.
        
        get_top_execution_if_time() does by itself the waiting instead of
        returning abstime. This simplifies the code in Event_scheduler::run()
        get_top_execution_if_time() returns only if job_data != NULL or if
        the scheduler thread was killed.
        
        notify_observers() is no more used and therefore removed.
        
        Added Event_queue::cond_wait() because now there is waiting on a
        conditional variable in Event_queue too (like in Event_scheduler for
        ::stop()).
      sql/event_scheduler.cc:
        Change the relationship between Event_scheduler & Event_queue.
        Event_queue does not know anymore about Event_scheduler. When
        the scheduler calls get_top_element_if_time() it may fall asleep
        on a conditional of Event_queue, if either the queue is empty or
        it's still not time for activation. When the method returns it
        will return a non-null address, namely an object to be executed.
        If the return value is NULL, the thread was killed by a call to
        Event_scheduler::stop() (we assert this).
      sql/event_scheduler.h:
        Remove queue_changed() as it is obsoleted by making the relationship
        between Event_scheduler and Event_queue one-way, from the former to the
        latter. Event_queue now does not know about Event_scheduler.
        
        get_state() is changed to is_running(). The state enum should be private,
        as it is not needed to be seen from outside anymore.
      sql/events.cc:
        Event_queue does not need anymore a pointer to Event_scheduler.
      0410cc3a
    • unknown's avatar
      Fix im_instance_conf.imtest failure on AIX and HPUX. · f5e8d19f
      unknown authored
      The problem was in dummy grep on AIX and HPUX.
      
      The fix is to use more portable patterns.
      
      The patch is only for test suite
      (i.e. does not touch server codebase).
      
      
      mysql-test/r/im_instance_conf.result:
        Updated result file.
      mysql-test/t/disabled.def:
        Fix typo.
      mysql-test/t/im_instance_conf.imtest:
        Make grep-pattern aix/hpux-compatible.
      mysql-test/t/im_options.imtest:
        Make grep-pattern aix/hpux-compatible.
      mysql-test/t/im_options-im.opt:
        Speedup IM-tests.
      f5e8d19f
    • unknown's avatar
      Merge bk-internal.mysql.com:/data0/bk/mysql-5.1 · 67b80fd6
      unknown authored
      into  bk-internal.mysql.com:/data0/bk/mysql-5.1-kt
      
      
      sql/share/errmsg.txt:
        Auto merged
      67b80fd6
    • unknown's avatar
      BUG#21960: Reverted bad patch · ae4fe42b
      unknown authored
      ae4fe42b
    • unknown's avatar
      Merge joreland@bk-internal.mysql.com:/home/bk/mysql-5.1 · 72df0b3e
      unknown authored
      into  perch.ndb.mysql.com:/home/jonas/src/mysql-5.1
      
      
      72df0b3e
    • unknown's avatar
      Merge dator5.(none):/home/pappa/clean-mysql-5.1-kt · 45fc29b7
      unknown authored
      into  dator5.(none):/home/pappa/push_clone
      
      
      mysql-test/r/partition.result:
        Auto merged
      sql/share/errmsg.txt:
        Auto merged
      45fc29b7
    • unknown's avatar
      Merge dator5.(none):/home/pappa/clean-mysql-5.1 · 86d29fdf
      unknown authored
      into  dator5.(none):/home/pappa/push_clone
      
      
      sql/item.cc:
        Auto merged
      sql/sql_yacc.yy:
        Auto merged
      sql/share/errmsg.txt:
        manual merge
      86d29fdf
    • unknown's avatar
      Bug#21862 Misleading error message 1490: "A PRIMARY KEY need to include all fields..." · fb338e6c
      unknown authored
      fixed error message
      
      
      mysql-test/r/ndb_partition_key.result:
        Bug#21862 Misleading error message 1490: "A PRIMARY KEY need to include all fields..."
        result fix
      mysql-test/r/partition.result:
        Bug#21862 Misleading error message 1490: "A PRIMARY KEY need to include all fields..."
        result fix
      fb338e6c
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.1 · a418c8f5
      unknown authored
      into  bodhi.local:/opt/local/work/mysql-5.1-runtime-merge
      
      
      a418c8f5
    • unknown's avatar
      Merge perch.ndb.mysql.com:/home/jonas/src/mysql-5.1-new-ndb · 658d52a3
      unknown authored
      into  perch.ndb.mysql.com:/home/jonas/src/mysql-5.1
      
      
      658d52a3
    • unknown's avatar
      Merge dator5.(none):/home/pappa/clean-mysql-5.1-kt · 4ec2071a
      unknown authored
      into  dator5.(none):/home/pappa/bug21388
      
      
      mysql-test/t/disabled.def:
        Auto merged
      sql/ha_partition.cc:
        Auto merged
      sql/handler.h:
        Auto merged
      4ec2071a
    • unknown's avatar
      Merge dator5.(none):/home/pappa/clean-mysql-5.1 · 37c67ec9
      unknown authored
      into  dator5.(none):/home/pappa/bug21388
      
      
      sql/ha_partition.cc:
        Auto merged
      sql/handler.h:
        Auto merged
      37c67ec9
    • unknown's avatar
      BUG#21658: Crash partition test in prepared statement protocol · abf8f4f1
      unknown authored
      Review fixes
      
      
      sql/sql_partition.cc:
        Removed unused variables
        Used thd->free_items() method
      sql/table.cc:
        Changed order of calls
      abf8f4f1
    • unknown's avatar
      Merge epotemkin@bk-internal.mysql.com:/home/bk/mysql-5.1 · b128cfa8
      unknown authored
      into  moonbone.local:/work/tmp_merge-5.1-opt-mysql
      
      
      sql/ha_innodb.cc:
        Auto merged
      sql/mysql_priv.h:
        Auto merged
      sql/sql_delete.cc:
        Auto merged
      sql/sql_select.cc:
        Auto merged
      b128cfa8
  8. 30 Aug, 2006 6 commits
    • unknown's avatar
      Post-merge fixes. · 0ec1397d
      unknown authored
      
      mysql-test/lib/mtr_process.pl:
        Apply manually the merge from 5.0
      mysql-test/mysql-test-run.pl:
        Apply manually the merge from 5.0
      mysql-test/r/grant.result:
        A post-merge fix.
      mysql-test/r/im_cmd_line.result:
        A post-merge fix.
      mysql-test/r/im_instance_conf.result:
        A post-merge fix.
      mysql-test/r/sp.result:
        A post-merge fix.
      mysql-test/t/grant.test:
        A post-merge fix.
      mysql-test/t/im_cmd_line.imtest:
        A post-merge fix.
      mysql-test/t/im_instance_conf.imtest:
        A post-merge fix.
      sql/field.cc:
        A post-merge fix.
      sql/item_cmpfunc.cc:
        A post-merge fix.
      sql/sp_head.cc:
        A post-merge fix.
      sql/sp_head.h:
        A post-merge fix.
      0ec1397d
    • unknown's avatar
      Merge bk-internal.mysql.com:/data0/bk/mysql-5.1 · ff318949
      unknown authored
      into  bk-internal.mysql.com:/data0/bk/mysql-5.1-kt
      
      
      ff318949
    • unknown's avatar
      sql_base.cc, ndb_condition_pushdown.result, opt_range.cc: · 00c24198
      unknown authored
        After merge changes
      
      
      mysql-test/r/ndb_condition_pushdown.result:
        After merge changes
      sql/sql_base.cc:
        After merge changes
      sql/opt_range.cc:
        After merge changes
      00c24198
    • unknown's avatar
      disabled some tests to get passing tests · e87b6090
      unknown authored
      
      mysql-test/t/disabled.def:
        disabled some tests to get some tests passing.
      e87b6090
    • unknown's avatar
      Fix for bug #20907 · 62accb04
      unknown authored
      CMake versions > 2.4 allow linking to STATIC or SHARED libraries only.
      
      
      
      libmysql/CMakeLists.txt:
        Fix for Cmake BC problems (as suggested by Elliot)
      62accb04
    • unknown's avatar
      bug#21676 select * from information_schema.files crashes server · 7c96e948
      unknown authored
      skip engine handling if engine is disabled
      
      
      7c96e948