1. 15 Feb, 2006 1 commit
    • unknown's avatar
      fix for bug#16406 (Events: DROP DATABASE doesn't automatically drop events) · fea4742d
      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
      fea4742d
  2. 02 Feb, 2006 8 commits
    • unknown's avatar
      Merge ssmith@bk-internal.mysql.com:/home/bk/mysql-5.1-new · 7088b39d
      unknown authored
      into  mysql.com:/home/stewart/Documents/MySQL/5.1/new
      
      
      7088b39d
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.1-new · 6aa51035
      unknown authored
      into  mysql.com:/home/emurphy/src/mysql/bk-clean/mysql-5.1-new-merge
      
      
      6aa51035
    • unknown's avatar
      Merge abarkov@bk-internal.mysql.com:/home/bk/mysql-5.1-new · 5312aafc
      unknown authored
      into  mysql.com:/usr/home/bar/mysql-5.1.new.ctype
      
      
      5312aafc
    • unknown's avatar
      WL#1386 - CTYPE table for unicode character sets · 4fa4383b
      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
      4fa4383b
    • unknown's avatar
      Post-merge fixes. · 409719cc
      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).
      409719cc
    • unknown's avatar
      build fix for solaris 10 sparc -max · f31f6643
      unknown authored
      
      sql/ha_ndbcluster.cc:
        ndbcluster_fill_files_table should return int
      f31f6643
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.1-new · a2f42831
      unknown authored
      into  mysql.com:/home/emurphy/src/mysql/bk-clean/mysql-5.1-new-merge
      
      
      sql/ha_innodb.cc:
        Auto merged
      a2f42831
    • unknown's avatar
      build fix when building with example storage engine. · 921ceda3
      unknown authored
      
      storage/example/ha_example.cc:
        add handlerton call for fill files table
      921ceda3
  3. 01 Feb, 2006 31 commits