1. 14 Aug, 2012 1 commit
    • unknown's avatar
      MDEV-450: Deadlock between starting a slave and reading system variables · 47929af5
      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.
      47929af5
  2. 13 Aug, 2012 2 commits
  3. 11 Aug, 2012 1 commit
  4. 10 Aug, 2012 1 commit
  5. 09 Aug, 2012 2 commits
  6. 08 Aug, 2012 2 commits
  7. 06 Aug, 2012 1 commit
    • Michael Widenius's avatar
      Fixed compiler warnings · a7123f50
      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
      a7123f50
  8. 01 Aug, 2012 1 commit
  9. 02 Aug, 2012 3 commits
  10. 01 Aug, 2012 1 commit
    • Elena Stepanova's avatar
      MDEV-369 (Mismatches in MySQL engines test suite) · 4f3674c8
      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.
      4f3674c8
  11. 31 Jul, 2012 5 commits
    • Sergei Golubchik's avatar
      MDEV-336 oqgraph 5.5 crashes in buildbot · 6d4acc43
      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
      6d4acc43
    • Sergei Golubchik's avatar
      MDEV-419 ensure that all HAVE_XXX constants can be set by cmake · 0117a92f
      Sergei Golubchik authored
      add missing checks to configure.cmake
      remove dead code and unused HAVE_xxx constants from the sources
      0117a92f
    • Sergei Golubchik's avatar
      MDEV-375 Server crashes in THD::print_aborted_warning with log_warnings > 3 · 42ea25d4
      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.
      42ea25d4
    • Alexey Botchkov's avatar
      MDEV-340 Save replication comments for DROP TABLE. · 9705ad5e
      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.
      9705ad5e
    • Sergei Golubchik's avatar
      MDEV-418 Feedback plugin statisics problem · 7368ef56
      Sergei Golubchik authored
      Add the check for sys/utsname.h to configure.cmake
      7368ef56
  12. 30 Jul, 2012 2 commits
    • Vladislav Vaintroub's avatar
      MDEV-417 - fix typo that prevented use of atomic instructions on Windows · 257fd9d3
      Vladislav Vaintroub authored
      use correct macro for Microsoft compiler. It is _MSC_VER , not _MSV_VER
      257fd9d3
    • Elena Stepanova's avatar
      MDEV-369 (Mismatches in MySQL engines test suite) · d1a90e85
      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.
      d1a90e85
  13. 26 Jul, 2012 1 commit
  14. 25 Jul, 2012 1 commit
  15. 24 Jul, 2012 1 commit
  16. 23 Jul, 2012 1 commit
  17. 19 Jul, 2012 2 commits
  18. 18 Jul, 2012 3 commits
    • Sergey Petrunya's avatar
      Merge 5.3->5.5 · 79c4b4e4
      Sergey Petrunya authored
      79c4b4e4
    • Sergey Petrunya's avatar
      Merge bug#1007622 from 5.3 to 5.5 · 33e961c1
      Sergey Petrunya authored
      33e961c1
    • Sergey Petrunya's avatar
      MDEV-398: Sergv related to spacial queries · 7e6bec87
      Sergey Petrunya authored
      - index_merge/intersection is unable to work on GIS indexes, because:
        1. index scans have no Rowid-Ordered-Retrieval property
        2. When one does an index-only read over a GIS index, they do not 
           get the index tuple, because index only contains bounding box of the geometry.
           This is why key_copy() call crashed.
      This patch fixes #1, which makes the problem go away. Theoretically, it would 
      be nice to check #2, too, but SE API semantics is not sufficiently precise to do it.
      7e6bec87
  19. 16 Jul, 2012 4 commits
  20. 13 Jul, 2012 1 commit
    • unknown's avatar
      fixed MySQL bug#53775: · 9f6a1c58
      unknown authored
      Now partition engine adds underlying tables to the QC and ask underlying tables engine permittion to cache the query and return result of the query.
      
      Incorrect QC cleanup in case of table registration failure fixe.
      
      Unified interface for myisammrg & partitioned engnes for QC.
      9f6a1c58
  21. 12 Jul, 2012 1 commit
  22. 11 Jul, 2012 3 commits