1. 24 Aug, 2007 2 commits
    • unknown's avatar
      Bug #28284: Test "mysqlslap" reports "out of memory" · a6218d49
      unknown authored
      When locking a "fast" mutex a static variable cpu_count 
      was used as a flag to initialize itself on the first usage 
      by calling sysconf() and setting non-zero value.
      This is not thread and optimization safe on some 
      platforms. That's why the global initialization needs 
      to be done once in a designated function.
      This will also speed up the usage (by a small bit) 
      because it won't have to check if it's initialized on
      every call.
      
      Fixed by moving the fast mutexes initialization out of 
      my_pthread_fastmutex_lock() to fastmutex_global_init()
      and call it from my_init()
      
      
      include/my_pthread.h:
        Bug #28284: move the fast mutexes initialization out of 
        my_pthread_fastmutex_lock() to fastmutex_global_init()
        and call it from my_init()
      mysys/my_init.c:
        Bug #28284: move the fast mutexes initialization out of 
        my_pthread_fastmutex_lock() to fastmutex_global_init()
        and call it from my_init()
      mysys/thr_mutex.c:
        Bug #28284: move the fast mutexes initialization out of 
        my_pthread_fastmutex_lock() to fastmutex_global_init()
        and call it from my_init()
      a6218d49
    • unknown's avatar
      Merge bk@192.168.21.1:mysql-5.1-opt · 8ab0d9bf
      unknown authored
      into  mysql.com:/home/hf/work/28430/my51-28430
      
      8ab0d9bf
  2. 23 Aug, 2007 5 commits
    • unknown's avatar
      Merge bk-internal.mysql.com:/data0/bk/mysql-5.0-opt · 9779d855
      unknown authored
      into  bk-internal.mysql.com:/data0/bk/mysql-5.1-opt
      
      
      mysql-test/r/query_cache.result:
        Auto merged
      mysql-test/t/query_cache.test:
        Auto merged
      sql/sql_base.cc:
        Auto merged
      sql/sql_cache.cc:
        Auto merged
      9779d855
    • unknown's avatar
      Merge bk-internal.mysql.com:/data0/bk/mysql-5.1 · 5dc13d71
      unknown authored
      into  bk-internal.mysql.com:/users/gshchepa/mysql-5.1-opt
      
      
      sql/item.cc:
        Auto merged
      sql/sql_base.cc:
        Auto merged
      sql/sql_cache.cc:
        Auto merged
      sql/sql_lex.cc:
        Auto merged
      sql/sql_lex.h:
        Auto merged
      sql/sql_select.cc:
        Auto merged
      sql/sql_show.cc:
        Auto merged
      5dc13d71
    • unknown's avatar
      Merge bk-internal.mysql.com:/data0/bk/mysql-5.0 · 437c682d
      unknown authored
      into  bk-internal.mysql.com:/users/gshchepa/mysql-5.0-opt
      
      
      sql/sql_base.cc:
        Auto merged
      sql/sql_cache.cc:
        Auto merged
      437c682d
    • unknown's avatar
      Bug #28430 Failure in replication of innodb partitioned tables on row/mixed format. · 3d67d0d1
      unknown authored
      In the ha_partition::position() we didn't calculate the number
      of the partition of the record. We used m_last_part value instead,
      relying on that it is set in other place like previous call of a method
      like ::write_row(). In replication we don't call any of these befor
      position(). Delete_rows_log_event::do_exec_row calls find_and_fetch_row.
      In case of InnoDB-based PARTITION table, we have HA_PRIMARY_KEY_REQUIRED_FOR_POSITION
      enabled, so use position() / rnd_pos() calls to fetch the record.
      
      Fixed by adding partition_id calculation to the ha_partition::position()
      
      
      sql/ha_partition.h:
         Bug #28430 Failure in replication of innodb partitioned tables on row/mixed format.
        column_bitmaps_signal interface added
      sql/ha_partition.cc:
        Bug #28430 Failure in replication of innodb partitioned tables on row/mixed format.
        Calculate the number of the partition in ha_partition::position().
        ha_partition::column_bitmaps_signal() implemented
      mysql-test/r/partition_pruning.result:
        Bug #28430 Failure in replication of innodb partitioned tables on row/mixed format.
        test result fixed
      3d67d0d1
    • unknown's avatar
      Merge gleb.loc:/home/uchum/work/bk/5.0-opt · fc5127f1
      unknown authored
      into  gleb.loc:/home/uchum/work/bk/5.1-opt
      
      
      sql/sql_select.cc:
        Auto merged
      fc5127f1
  3. 22 Aug, 2007 3 commits
    • unknown's avatar
      Merge gleb.loc:/home/uchum/work/bk/5.0-opt-30201 · 922ea913
      unknown authored
      into  gleb.loc:/home/uchum/work/bk/5.1-opt
      
      
      sql/sql_cache.cc:
        SCCS merged
      922ea913
    • unknown's avatar
      Merge gleb.loc:/home/uchum/work/bk/5.0-opt-30201 · c21f354a
      unknown authored
      into  gleb.loc:/home/uchum/work/bk/5.0-opt
      
      c21f354a
    • unknown's avatar
      Fixed bug #30201. · e4c8992d
      unknown authored
      Killing a SELECT query with KILL QUERY or KILL CONNECTION
      causes a server crash if the query cache is enabled.
      
      Normal evaluation of a query may be interrupted by the
      KILL QUERY/CONNECTION statement, in this case the mysql_execute_command
      function returns TRUE, and the thd->killed flag has true value.
      In this case the result of the query may
      be cached incompletely (omitting call to query_cache_insert inside
      the net_real_write function), and next call to query_cache_end_of_result
      may lead to server crash.
      Thus, the query_cache_end_of_result function has been modified to abort
      query cache in the case of killed thread.
      
      
      
      sql/sql_cache.cc:
        Fixed bug #30201.
        The  query_cache_end_of_result function has been modified to abort query
        cache in the case of query execution failure. Also this function has been
        modified to remove incomplete query block.
      e4c8992d
  4. 21 Aug, 2007 21 commits
  5. 20 Aug, 2007 7 commits
    • unknown's avatar
      Fixed 5.0 -> 5.1 merge · adfaa3d9
      unknown authored
      adfaa3d9
    • unknown's avatar
      Merge weblab.(none):/home/marcsql/TREE/mysql-5.0-runtime · 94ca17c4
      unknown authored
      into  weblab.(none):/home/marcsql/TREE/mysql-5.1-rt50-merge
      
      
      mysql-test/r/handler_myisam.result:
        Auto merged
      mysql-test/r/query_cache.result:
        Auto merged
      mysql-test/t/query_cache.test:
        Auto merged
      sql/lock.cc:
        Auto merged
      sql/sql_base.cc:
        Auto merged
      mysql-test/include/handler.inc:
        Auto merged
      94ca17c4
    • unknown's avatar
      Fixed bug #30287. · 79260ee0
      unknown authored
      The server created temporary tables for filesort in the working directory
      instead of the specified tmpdir directory.
      
      
      sql/item.cc:
        Fixed bug #30287.
        The Item_field::set_field method has been modified to reset the any_privileges
        flag to false in case of system temporary table. This modification prevents the
        server from unnecessary checking of user privileges to access system temporary
        tables.
      sql/sql_select.cc:
        Fixed bug #30287.
        Bugfix for #29015 has been removed: TABLE_SHARE::table_name of system
        temporary tables contains full path to table file basename again.
      sql/sql_view.cc:
        Fixed bug #30287.
        Commentary has been added.
      79260ee0
    • unknown's avatar
      Merge weblab.(none):/home/marcsql/TREE/mysql-5.1-base · 23ef5697
      unknown authored
      into  weblab.(none):/home/marcsql/TREE/mysql-5.1-rt-merge
      
      
      sql/field.cc:
        Auto merged
      sql/field.h:
        Auto merged
      sql/log_event.h:
        Auto merged
      sql/rpl_record.cc:
        Auto merged
      sql/slave.h:
        Auto merged
      sql/sql_base.cc:
        Auto merged
      sql/sql_class.cc:
        Auto merged
      sql/sql_handler.cc:
        Auto merged
      sql/sql_parse.cc:
        Auto merged
      sql/sql_select.cc:
        Auto merged
      23ef5697
    • unknown's avatar
      Merge weblab.(none):/home/marcsql/TREE/mysql-5.0-base · ae349e98
      unknown authored
      into  weblab.(none):/home/marcsql/TREE/mysql-5.0-rt-merge
      
      
      sql/sql_base.cc:
        Auto merged
      sql/sql_handler.cc:
        Auto merged
      ae349e98
    • unknown's avatar
      Merge sgluhov@bk-internal.mysql.com:/home/bk/mysql-5.0-opt · b857b104
      unknown authored
      into  mysql.com:/home/gluh/MySQL/Merge/5.0-opt
      
      b857b104
    • unknown's avatar
      Bug#27629 Possible security flaw in INFORMATION_SCHEMA and SHOW statements · bb1a074c
      unknown authored
      added SUPER_ACL check for I_S.TRIGGERS
      
      
      mysql-test/r/information_schema.result:
        result fix
      mysql-test/r/information_schema_db.result:
        result fix
      mysql-test/t/information_schema.test:
        test case
      sql/sql_show.cc:
        added SUPER_ACL check for I_S.TRIGGERS
      bb1a074c
  6. 18 Aug, 2007 2 commits