1. 16 Feb, 2006 15 commits
  2. 15 Feb, 2006 25 commits
    • 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
    • unknown's avatar
    • unknown's avatar
      Merge bk-internal:/home/bk/mysql-5.1-new · 01e2e438
      unknown authored
      into  mysql.com:/home/jimw/my/mysql-5.1-clean
      
      01e2e438
    • unknown's avatar
      build fixes · a0e3199e
      unknown authored
      
      sql/event.cc:
        - make this not unsigned. gcc complains
      sql/event_timed.cc:
        acl_getroot_no_password() is not there in libmysqld, disable it's usage
        in this case.
      sql/set_var.cc:
        fix for the broken build of Serg. gcc seems to be pretty happy without
        the return and returns the value of the last statement
      a0e3199e
    • unknown's avatar
      more cosmetic before push of fix for bug#17289 · e5b786ef
      unknown authored
      
      sql/event_timed.cc:
        - fix comment
        - use mysql_change_db() this will check for us
      e5b786ef
    • unknown's avatar
      Merge bk-internal:/home/bk/mysql-5.1-new · 16cab23b
      unknown authored
      into  mysql.com:/home/jimw/my/mysql-5.1-clean
      
      16cab23b
    • unknown's avatar
      Merge mysql.com:/home/mydev/mysql-5.1 · da568923
      unknown authored
      into  mysql.com:/home/mydev/mysql-5.1-bug8841
      
      da568923
    • unknown's avatar
      merging before test + push · 3f01ca1f
      unknown authored
      
      mysql-test/r/events.result:
        Auto merged
      mysql-test/t/events.test:
        Auto merged
      sql/event.h:
        Auto merged
      sql/event_timed.cc:
        manual merge
      3f01ca1f
    • unknown's avatar
      cosmetic post-review changes · 5a4b8401
      unknown authored
      
      mysql-test/r/events.result:
        result fixed
      sql/event_executor.cc:
        cosmetic changes to show the definer of the event
      5a4b8401
    • unknown's avatar
      Merge ahristov@bk-internal.mysql.com:/home/bk/mysql-5.1-new · 6699a11b
      unknown authored
      into lmy004.:/work/mysql-5.1-bug16410
      
      6699a11b
    • unknown's avatar
      Merge ahristov@bk-internal.mysql.com:/home/bk/mysql-5.1-new · 9b862209
      unknown authored
      into lmy004.:/work/mysql-5.1-bug16410
      
      9b862209
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.1-new · 2ad9f150
      unknown authored
      into serg.mylan:/usr/home/serg/Abk/mysql-5.1
      
      2ad9f150
    • unknown's avatar
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.1-new · f322e92b
      unknown authored
      into  neptunus.(none):/home/msvensson/mysql/mysql-5.1
      
      
      libmysql/libmysql.c:
        Auto merged
      tests/mysql_client_test.c:
        Auto merged
      f322e92b
    • unknown's avatar
      Merge mysql.com:/home/jimw/my/mysql-5.0-clean · 82e5945e
      unknown authored
      into  mysql.com:/home/jimw/my/mysql-5.1-clean
      
      
      client/mysqltest.c:
        Auto merged
      libmysql/libmysql.c:
        Auto merged
      mysql-test/r/mysqltest.result:
        Auto merged
      mysql-test/t/mysqltest.test:
        Auto merged
      tests/mysql_client_test.c:
        Auto merged
      BitKeeper/deleted/.del-ndb_load.result:
        Auto merged
      BitKeeper/deleted/.del-ndb_load.test:
        Auto merged
      mysql-test/t/disabled.def:
        Resolve conflict
      82e5945e
    • unknown's avatar
      Merge mysql.com:/home/jimw/my/mysql-5.1-16782 · 32cfe2ef
      unknown authored
      into  mysql.com:/home/jimw/my/mysql-5.1-clean
      
      
      sql/ha_partition.cc:
        Auto merged
      mysql-test/r/partition.result:
        Resolve conflicts
      mysql-test/t/partition.test:
        Resolve conflicts
      32cfe2ef
    • unknown's avatar
      Merge mysql.com:/home/jimw/my/mysql-5.1-16775 · b16f6e2d
      unknown authored
      into  mysql.com:/home/jimw/my/mysql-5.1-clean
      
      
      sql/ha_partition.cc:
        Auto merged
      mysql-test/r/partition.result:
        Resolve conflicts
      mysql-test/t/partition.test:
        Resolve conflicts
      b16f6e2d
    • unknown's avatar
      Merge mysql.com:/home/jimw/my/mysql-5.0-clean · 8ea17a5d
      unknown authored
      into  mysql.com:/home/jimw/my/mysql-5.1-clean
      
      
      client/mysqldump.c:
        Auto merged
      libmysql/libmysql.c:
        Auto merged
      tests/mysql_client_test.c:
        Auto merged
      8ea17a5d
    • unknown's avatar
      Bug #16782: Partitions: crash, REPLACE .. on table with PK, DUPLICATE · 3b06f963
      unknown authored
      KEY event. Partitioning wrongly claimed to be able to handle HA_DUPP_POS
      when it was supported by the underlying storage engine, which resulted
      in a crash when handling REPLACE statements.
      
      
      mysql-test/r/partition.result:
        Add new results
      mysql-test/t/partition.test:
        Add regression test
      sql/ha_partition.cc:
        Fix list of table flags that are not passed through for partitioned
        tables, and add HA_DUPP_POS to that list. Also, handle HA_EXTRA_FLUSH_CACHE
        in ha_partition::extra().
      3b06f963
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0 · 95957e2e
      unknown authored
      into  neptunus.(none):/home/msvensson/mysql/mysql-5.0
      
      
      libmysql/libmysql.c:
        Auto merged
      tests/mysql_client_test.c:
        Auto merged
      95957e2e
    • unknown's avatar
      Fix the coding style in a few new files. · 7360c1a8
      unknown authored
      7360c1a8
    • unknown's avatar
      Merge ahristov@bk-internal.mysql.com:/home/bk/mysql-5.1-new · 6efc8f1a
      unknown authored
      into lmy004.:/work/mysql-5.1-bug17289
      
      6efc8f1a
    • unknown's avatar
      Merge mysql.com:/home/jimw/my/mysql-4.1-clean · cb4a6ce4
      unknown authored
      into  mysql.com:/home/jimw/my/mysql-5.0-clean
      
      cb4a6ce4
    • unknown's avatar
      Merge bk-internal:/home/bk/mysql-5.0 · cf904ce1
      unknown authored
      into  mysql.com:/home/jimw/my/mysql-5.0-clean
      
      cf904ce1
    • unknown's avatar
      fix 'make dist' · 36418a7b
      unknown authored
      36418a7b