1. 23 Feb, 2006 1 commit
    • unknown's avatar
      Bug#17181 (mysqlslap test server crash): · 7d4c6846
      unknown authored
        Moving assignments to table_map_id for thread-safe handling of
        table shares.
      
      
      sql/ha_ndbcluster_binlog.cc:
        Assign_new_table_id() now takes table share instead of table.
      sql/mysql_priv.h:
        New protptype for assign_new_table_id().
      sql/sql_base.cc:
        Assign_new_table_id() now takes a table share instead of a table.
        Moving call to assign_new_table_id() into get_table_share().
      sql/table.cc:
        Setting default values of table_map_id and table_map_version inside
        alloc_table_share() and init_tmp_table_share().
        Removing the settings from open_table_from_share().
      7d4c6846
  2. 16 Feb, 2006 31 commits
  3. 15 Feb, 2006 8 commits
    • 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
    • unknown's avatar
    • unknown's avatar
      Merge bk-internal:/home/bk/mysql-5.1-new · b87e0993
      unknown authored
      into  mysql.com:/home/jimw/my/mysql-5.1-clean
      
      
      b87e0993
    • unknown's avatar
      build fixes · ea8a26c6
      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
      ea8a26c6
    • unknown's avatar
      more cosmetic before push of fix for bug#17289 · 4e2b90b1
      unknown authored
      
      sql/event_timed.cc:
        - fix comment
        - use mysql_change_db() this will check for us
      4e2b90b1
    • unknown's avatar
      Merge bk-internal:/home/bk/mysql-5.1-new · 256d9e53
      unknown authored
      into  mysql.com:/home/jimw/my/mysql-5.1-clean
      
      
      256d9e53
    • unknown's avatar
      Merge mysql.com:/home/mydev/mysql-5.1 · 78bec853
      unknown authored
      into  mysql.com:/home/mydev/mysql-5.1-bug8841
      
      
      78bec853
    • unknown's avatar
      merging before test + push · 8fd74f31
      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
      8fd74f31