1. 28 Aug, 2012 1 commit
  2. 22 Aug, 2012 2 commits
  3. 21 Aug, 2012 2 commits
    • unknown's avatar
      Fix bug mdev-447: Wrong output from the EXPLAIN command of the test case for lp bug #714999 · e261f87e
      unknown authored
      The fix backports from MWL#182: Explain running statements the logic that
      saves the original JOIN_TAB array of a query plan after optimization. This
      array is later used during EXPLAIN to iterate over the original JOIN plan
      nodes in the cases when this plan could be changed by early subquery
      execution during the optimization phase of the outer query.
      e261f87e
    • Michael Widenius's avatar
      Fix for bug lp:1039277 "Crash in sql_cache.cc". · 3e9b15c7
      Michael Widenius authored
      The crash happend when combining query cache, prepared statements and using a read only cursor.
      
      sql/sql_cache.cc:
        Fixed unlikely error when one adjust query cache size in middle of operation
      sql/sql_cursor.cc:
        Disable query cache when using cursors. This fixed lp:1039277
      tests/mysql_client_test.c:
        Test case for lp:1039277
      3e9b15c7
  4. 20 Aug, 2012 1 commit
    • Michael Widenius's avatar
      Ensure we don't assert with debug binaries if SHOW INNODB STATUS returns with an error. · d7a1ea48
      Michael Widenius authored
      
      sql/handler.cc:
        SHOW INNODB STATUS sometimes returns 0 even if it has generated an error.
        This code is here to catch it until InnoDB some day is fixed.
      storage/innobase/handler/ha_innodb.cc:
        Catch at least one of the possible errors from SHOW INNODB STATUS to provide a correct return code.
      storage/xtradb/handler/ha_innodb.cc:
        Catch at least one of the possible errors from SHOW INNODB STATUS to provide a correct return code.
      support-files/my-huge.cnf.sh:
        Fixed typo
      d7a1ea48
  5. 17 Aug, 2012 2 commits
    • unknown's avatar
      20f4c20c
    • Michael Widenius's avatar
      Fixed compiler warnings · f52dcc92
      Michael Widenius authored
      Fixed error in test that caused following tests to fail
      
      extra/yassl/taocrypt/src/dsa.cpp:
        Fixed compiler warning by adding cast
      mysql-test/suite/rpl/t/rpl_start_slave_deadlock_sys_vars.test:
        We have to first test for have_debug_sync to not start master wrongly
      plugin/auth_pam/auth_pam.c:
        Fixed compiler warning
      sql/sys_vars.h:
        Fixed compiler warning (Sys_var_max_user_conn is now signed)
      support-files/compiler_warnings.supp:
        Don't give warnings for auth_pam.c (Tried to fix it by changing the code, but could not find an easy way to do that on solaris)
      f52dcc92
  6. 15 Aug, 2012 4 commits
    • Michael Widenius's avatar
      Fixed MDEV-366: Assertion `share->reopen == 1' failed in maria_extra on DROP... · 2176956c
      Michael Widenius authored
      Fixed MDEV-366: Assertion `share->reopen == 1' failed in maria_extra on DROP TABLE which is locked twice
      
      mysql-test/suite/maria/lock.result:
        Added test case
      mysql-test/suite/maria/lock.test:
        Added test case
      sql/sql_table.cc:
        One can't call HA_EXTRA_FORCE_REOPEN on something that may be opened twice.
        It's safe to remove the call in this case as we will call HA_EXTRA_PREPARE_FOR_DROP for the table anyway.
        (One nice side effect is that drop is a bit faster as we are not flushing the cache to disk before the drop anymore)
      2176956c
    • Michael Widenius's avatar
      Fixed MDEV-365 "Got assertion when doing alter table on a partition" · 5abe96e5
      Michael Widenius authored
      
      mysql-test/r/partition.result:
        Added test case
      mysql-test/t/partition.test:
        Added test case
      sql/sql_partition.cc:
        Do mysql_trans_prepare_alter_copy_data() after all original tables are locked.
        (We don't want to disable transactions for the original tables, that still may be in the cache)
      sql/sql_table.cc:
        Fixed two wrong DBUG_ENTER
      5abe96e5
    • Michael Widenius's avatar
      automatic merge · 17708906
      Michael Widenius authored
      17708906
    • Michael Widenius's avatar
      Fixed compiler warnings · 34b6a6aa
      Michael Widenius authored
      sql/item_subselect.cc:
        Added purecov info
      sql/sql_select.cc:
        Added cast
      storage/innobase/handler/ha_innodb.cc:
        Added cast
      storage/xtradb/btr/btr0btr.c:
        Added buf_block_get_frame_fast() to avoid compiler warning
      storage/xtradb/handler/ha_innodb.cc:
        Added cast
      storage/xtradb/include/buf0buf.h:
        Innodb has buf_block_get_frame(block) defined as (block)->frame.
        Didn't want to do a big change to break xtradb as it may use block_get_frame() differently, so I mad this quick hack to patch one compiler warning.
      34b6a6aa
  7. 14 Aug, 2012 2 commits
    • Michael Widenius's avatar
      Fixed compiler errors · b3aa6b12
      Michael Widenius authored
      Updated test to also work on 32 bit
      
      mysql-test/suite/heap/heap.test:
        Updated test to also work on 32 bit
      b3aa6b12
    • unknown's avatar
      MDEV-450: Deadlock between starting a slave and reading system variables · fa5c75ec
      unknown authored
      Starting the SQL thread might deadlock with reading the values of the
      replication filtering options.
      
      The deadlock is due to a lock order violation when the variables are
      read or set. For example, reading replicate_ignore_table first
      acquires LOCK_global_system_variables in sys_var::value_ptr and later
      acquires LOCK_active_mi in Sys_var_rpl_filter::global_value_ptr. This
      violates the order established when starting a SQL thread, where
      LOCK_active_mi is acquired before start_slave, and ends up creating a
      thread (handle_slave_sql) that allocates a THD handle whose
      constructor acquires LOCK_global_system_variables in THD::init.
      
      The solution is to unlock LOCK_global_system_variables before the
      replication filtering options are set or read. This way the lock
      order is preserved and the data being read/set is still protected
      given that it acquires LOCK_active_mi.
      fa5c75ec
  8. 13 Aug, 2012 4 commits
  9. 11 Aug, 2012 1 commit
  10. 10 Aug, 2012 1 commit
  11. 09 Aug, 2012 2 commits
  12. 08 Aug, 2012 3 commits
  13. 06 Aug, 2012 2 commits
    • Michael Widenius's avatar
      Use less memory when growing HEAP tables. See MDEV-436 · 28bf4e56
      Michael Widenius authored
      mysql-test/suite/heap/heap.result:
        Added test case for MDEV-436
      mysql-test/suite/heap/heap.test:
        Added test case for MDEV-436
      storage/heap/hp_block.c:
        Don't allocate a set of HP_PTRS when not needed. This saves us about 1024 bytes for most allocations.
      storage/heap/hp_create.c:
        Made the initial allocation of block sizes depending on min_records and max_records.
      28bf4e56
    • Michael Widenius's avatar
      Fixed compiler warnings · 60cc80f7
      Michael Widenius authored
      sql/log.h:
        Fixed compiler warnings reported for gcc 2.7.1
      storage/xtradb/handler/ha_innodb.cc:
        Remove not used variables
      60cc80f7
  14. 01 Aug, 2012 1 commit
  15. 02 Aug, 2012 3 commits
  16. 01 Aug, 2012 1 commit
    • Elena Stepanova's avatar
      MDEV-369 (Mismatches in MySQL engines test suite) · 327e4c93
      Elena Stepanova authored
      Following reasons caused mismatches:
        - different handling of invalid values;
        - different CAST results with fractional seconds;
        - microseconds support in MariaDB;
        - different algorithm of comparing temporal values;
        - differences in error and warning texts and codes;
        - different approach to truncating datetime values to time;
        - additional collations;
        - different record order for queries without ORDER BY;
        - MySQL bug#66034.
      More details in MDEV-369 comments.
      327e4c93
  17. 31 Jul, 2012 5 commits
    • Sergei Golubchik's avatar
      MDEV-336 oqgraph 5.5 crashes in buildbot · 95840def
      Sergei Golubchik authored
      make CMakeLists.txt to detect if the installed boost can be compiled with the
      installed compile and specified set of compiler options.
      
      Background: even sufficiently new Boost cannot be compiled with the sufficiently old gcc
      in the presence of -fno-rtti
      95840def
    • Sergei Golubchik's avatar
      MDEV-419 ensure that all HAVE_XXX constants can be set by cmake · 4b91879f
      Sergei Golubchik authored
      add missing checks to configure.cmake
      remove dead code and unused HAVE_xxx constants from the sources
      4b91879f
    • Sergei Golubchik's avatar
      MDEV-375 Server crashes in THD::print_aborted_warning with log_warnings > 3 · 4151d16e
      Sergei Golubchik authored
      Don't use ER(xxx) in THD::close_connection(), when current_thd is already reset to NULL.
      Prefer ER_THD() or ER_DEFAULT() instead.
      4151d16e
    • Alexey Botchkov's avatar
      MDEV-340 Save replication comments for DROP TABLE. · 9f7412e6
      Alexey Botchkov authored
            mysql_rm_table_no_locks() function was modified.
            When we construct log record for the DROP TABLE, now we
            look if there's a comment before the first table name and
            add it to the record if so.
        
      per-file comments:
        sql/sql_table.cc
        MDEV-340 Save replication comments for DROP TABLE.
              comment_length() function implemented to find comments in the query,
              call it in mysql_rm_table_no_locks() and use the result to form log record.
        mysql-test/suite/binlog/r/binlog_drop_if_exists.result
        MDEV-340 Save replication comments for DROP TABLE.
              test result updated.
        mysql-test/suite/binlog/t/binlog_drop_if_exists.test
        MDEV-340 Save replication comments for DROP TABLE.
              test case added.
      9f7412e6
    • Sergei Golubchik's avatar
      MDEV-418 Feedback plugin statisics problem · 5da4f1e8
      Sergei Golubchik authored
      Add the check for sys/utsname.h to configure.cmake
      5da4f1e8
  18. 30 Jul, 2012 2 commits
    • Vladislav Vaintroub's avatar
      MDEV-417 - fix typo that prevented use of atomic instructions on Windows · af14c4e3
      Vladislav Vaintroub authored
      use correct macro for Microsoft compiler. It is _MSC_VER , not _MSV_VER
      af14c4e3
    • Elena Stepanova's avatar
      MDEV-369 (Mismatches in MySQL engines test suite) · 244acf7a
      Elena Stepanova authored
      Following reasons caused mismatches:
        - different handling of invalid values;
        - different CAST results with fractional seconds;
        - microseconds support in MariaDB;
        - different algorithm of comparing temporal values;
        - differences in error and warning texts and codes;
        - different approach to truncating datetime values to time;
        - additional collations;
        - different record order for queries without ORDER BY;
        - MySQL bug#66034.
      More details in MDEV-369 comments.
      244acf7a
  19. 26 Jul, 2012 1 commit