1. 15 Feb, 2006 1 commit
    • unknown's avatar
      fix for bug#16406 (Events: DROP DATABASE doesn't automatically drop events) · 7c593c9e
      unknown authored
      WL#1034
      - This changeset also changes the executor so its quite more stable now.
        Stressing test case added that executes ~800 events per second and dropping
        hundreds of events at once using DROP DATABASE.
      (with fixes after review of JimW)
      (with fixes after review of Serg)
      
      
      mysql-test/r/events.result:
        update results after TRIGGER_ACL was added
      mysql-test/t/events.test:
        -redundant line
      sql/event.cc:
        Implemented evex_db_drop_events() which drops all events
        from a specific database. Needed for SQLCOM_DROP_DATABASE
      sql/event.h:
        - protect the event better (see the changes to event_executor.cc
          and event.cc). An event object could be used in a spawned thread
          before it's executed but till now the object is marked as being
          executed when the anonymous sp_head is executed. However, there are
          timeframes before and after that during which the event is not marked
          as executed and other thread may delete the object -> so we end with
          a nirvana pointer.
      sql/event_executor.cc:
        - extract some of the code executed in the main thread to a function. Too long
          functions are bad for the overview.
        - prepend all information/error messages to the console with "SCHEDULER:" for
          better overview, and easied searching in the log tables.
      sql/event_priv.h:
        - change the name, of evex_db_find_event_by_name() and don't
          used C++ features like function overloading
        - define consts for result returned from event_timed::spawn_now()
      sql/event_timed.cc:
        - add few methods related to event execution.
          now the event spawns the worker thread and
          passes itself as parameter. This way it locks itself for exectution
          first and then spawning -> no race condition. When the worker thread
          has finished working with the reference it calls back
          event_timed::spawn_thread_finish() to unlock itself.
      sql/sql_db.cc:
        - call evex_drop_db_events() on DROP DATABASE
      7c593c9e
  2. 02 Feb, 2006 8 commits
    • unknown's avatar
      Merge ssmith@bk-internal.mysql.com:/home/bk/mysql-5.1-new · f61c2323
      unknown authored
      into  mysql.com:/home/stewart/Documents/MySQL/5.1/new
      
      f61c2323
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.1-new · cc853bc8
      unknown authored
      into  mysql.com:/home/emurphy/src/mysql/bk-clean/mysql-5.1-new-merge
      
      cc853bc8
    • unknown's avatar
      Merge abarkov@bk-internal.mysql.com:/home/bk/mysql-5.1-new · 37a814ec
      unknown authored
      into  mysql.com:/usr/home/bar/mysql-5.1.new.ctype
      
      37a814ec
    • unknown's avatar
      WL#1386 - CTYPE table for unicode character sets · bba93b58
      unknown authored
      A prerequisite for several fulltext and XML bugs.
      MY_CHARSET_HANDLER now has a new function "ctype"
      to detect a type of the next character in a string
      (i.e. digit, letter, space, punctuation, control, etc),
      which now works correctly for both 8bit and multibyte charsets.
      Previously only 8bit charsets worked correctly,
      while any multibyte character was considered as letter
      in multibyte charsets.
      Many files:
        Adding new function
      Makefile.am:
        Adding build rules for uctypedump,
        a dump tool to create my_uctype.h
        using Unicode Character Database file.
      m_ctype.h:
        Adding declaration of my_uni_ctype,
        ctype data for Unicode.
        Adding new member into MY_CHARSET_HANDLER
      Makefile.am:
        Adding my_uctype.h into noinst_HEADERS
      my_uctype.h, uctypedump.c:
        new files:
        ctype data for unicode,
        and the tool to generate it from 
        a Unicode Character Database file.
      
      
      
      include/Makefile.am:
        Adding my_uctype.h
      include/m_ctype.h:
        Adding declaration of my_uni_ctype,
        ctype data for Unicode.
      strings/Makefile.am:
        Adding build rules for uctypedump,
        a dump tool to create my_uctype.h
        using Unicode Character Database file.
      strings/ctype-big5.c:
        Adding new function
      strings/ctype-bin.c:
        Adding new function
      strings/ctype-cp932.c:
        Adding new function
      strings/ctype-euc_kr.c:
        Adding new function
      strings/ctype-eucjpms.c:
        Adding new function
      strings/ctype-gb2312.c:
        Adding new function
      strings/ctype-gbk.c:
        Adding new function
      strings/ctype-latin1.c:
        Adding new function
      strings/ctype-mb.c:
        Adding new function
      strings/ctype-simple.c:
        Adding new function
      strings/ctype-sjis.c:
        Adding new function
      strings/ctype-tis620.c:
        Adding new function
      strings/ctype-ucs2.c:
        Adding new function
      strings/ctype-ujis.c:
        Adding new function
      strings/ctype-utf8.c:
        Adding new function
      bba93b58
    • unknown's avatar
      Post-merge fixes. · cb91d942
      unknown authored
      
      mysql-test/t/disabled.def:
        disabling new test that was added during null-merge from 5.0
        the new test innodb_unsafe_binlog will be re-enabled when the
        5.1 snapshot for InnoDB is applied. Disabling test rather than
        removing files to make future merges easier (removing the files
        would cause merge conflicts when the files are re-added in the
        5.1 snapshot).
      cb91d942
    • unknown's avatar
      build fix for solaris 10 sparc -max · d1841f72
      unknown authored
      
      sql/ha_ndbcluster.cc:
        ndbcluster_fill_files_table should return int
      d1841f72
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.1-new · 0979459d
      unknown authored
      into  mysql.com:/home/emurphy/src/mysql/bk-clean/mysql-5.1-new-merge
      
      
      sql/ha_innodb.cc:
        Auto merged
      0979459d
    • unknown's avatar
      build fix when building with example storage engine. · 84940191
      unknown authored
      
      storage/example/ha_example.cc:
        add handlerton call for fill files table
      84940191
  3. 01 Feb, 2006 31 commits