1. 17 Apr, 2013 5 commits
    • Michael Widenius's avatar
      Changed the client library to only mark memory as THREAD_SPECIFIC if one has called · 9cb109a2
      Michael Widenius authored
      mysql_options() with MYSQL_OPT_USE_THREAD_SPECIFIC_MEMORY
      
      include/mysql.h:
        Added MYSQL_OPT_USE_THREAD_SPECIFIC_MEMORY
      include/mysql.h.pp:
        Updated file
      sql-common/client.c:
        Marked client memory as THREAD_SPECIFIC
      sql/event_db_repository.cc:
        Fixed compiler warning
      sql/slave.cc:
        Marked client memory as THREAD_SPECIFIC
      storage/federatedx/federatedx_io_mysql.cc:
        Marked client memory as THREAD_SPECIFIC
      storage/federatedx/ha_federatedx.cc:
        Marked client memory as THREAD_SPECIFIC
      storage/sphinx/ha_sphinx.cc:
        Marked client memory as THREAD_SPECIFIC
      9cb109a2
    • Michael Widenius's avatar
      Fixed compiler warnings and a not critical memory leak · 968dbbe3
      Michael Widenius authored
      
      sql/keycaches.cc:
        Added free_all_rpl_filters() to be able to free all filters at cleanup
      sql/keycaches.h:
        Added prototype
      sql/rpl_rli.cc:
        Fixed compiler warning
      sql/slave.cc:
        Free all rpl_filters at cleanup
      sql/sp.cc:
        Fixed compiler warning when not all struct elements was initialized
      sql/sql_acl.cc:
        Fixed compiler warning when not all struct elements was initialized
      storage/perfschema/table_events_waits.cc:
        Fixed compiler warning when not all struct elements was initialized
      storage/perfschema/table_events_waits_summary.cc:
        Fixed compiler warning when not all struct elements was initialized
      storage/perfschema/table_ews_global_by_event_name.cc:
        Fixed compiler warning when not all struct elements was initialized
      storage/perfschema/table_file_instances.cc:
        Fixed compiler warning when not all struct elements was initialized
      storage/perfschema/table_file_summary.cc:
        Fixed compiler warning when not all struct elements was initialized
      storage/perfschema/table_performance_timers.cc:
        Fixed compiler warning when not all struct elements was initialized
      storage/perfschema/table_setup_consumers.cc:
        Fixed compiler warning when not all struct elements was initialized
      storage/perfschema/table_setup_instruments.cc:
        Fixed compiler warning when not all struct elements was initialized
      storage/perfschema/table_setup_timers.cc:
        Fixed compiler warning when not all struct elements was initialized
      storage/perfschema/table_sync_instances.cc:
        Fixed compiler warning when not all struct elements was initialized
      storage/perfschema/table_threads.cc:
        Fixed compiler warning when not all struct elements was initialized
      storage/xtradb/os/os0file.c:
        Fixed compiler warning when not all struct elements was initialized
      968dbbe3
    • unknown's avatar
    • unknown's avatar
    • unknown's avatar
      Merge 5.5->10.0-base · 4eca3b92
      unknown authored
      4eca3b92
  2. 16 Apr, 2013 7 commits
    • unknown's avatar
      debug_sync is only available in debug build. · 4241b8fb
      unknown authored
      4241b8fb
    • unknown's avatar
      Fixes for stuff seen in buildbot: · 71569aac
      unknown authored
       - Fix embedded build
      
       - Backport disable of fallocate, it creates too short ibdata1
         when used with O_DIRECT on old kernels
      
       - Do not disable innodb during .deb install, we need it for
         mysql.rpl_slave_state table.
      71569aac
    • unknown's avatar
      Fix race in test case. · 6f277371
      unknown authored
      6f277371
    • Lixun Peng's avatar
      Makeing rpl_filter for each Master_info. · 7ced5182
      Lixun Peng authored
      Users can set different repplication filter rules for each replication connection, in my.cnf or command line.
      But the rules set online will not record in master.info, it means if users restart MySQL, these rules will lose.
      So if users wantn't their replication filter rules lose, they should write the rules in my.cnf.
      
      Users can set rules by 2 ways:
      1. Online SET command, "SET connection_name.replication_filter_settings = rules;".
      2. In my.cnf, "connection_name.replication_filter_settings = rules".
      
      If no connection_name in my.cnf, this rule will apply for ALL replication connection.
      If no connetion_name in SET statement, this rull will apply for default_connection_name.
      7ced5182
    • unknown's avatar
      MDEV-3882: .deb versions lower than upstream repo, causing install failure · fe928677
      unknown authored
      The official Debian Wheezy MySQL packages have versions like 5.5.30+dfsg-xxx.
      Such version is larger than 5.5.30-yyy, so apt prefers it.
      So use instead 5.5.30+maria-yyy, which is larger and can be pulled in
      automatically by apt.
      
      Also included are a couple of fixes for test failures in buildbot.
      fe928677
    • Igor Babaev's avatar
      Merge mwl253 -> 10.0-base · 133d4849
      Igor Babaev authored
      133d4849
    • Igor Babaev's avatar
      Added comments. · 95bdd00c
      Igor Babaev authored
      Renamed the virtual method middle_point_pos for the class Field to
      pos_in_interval.
      95bdd00c
  3. 15 Apr, 2013 5 commits
  4. 14 Apr, 2013 5 commits
    • Elena Stepanova's avatar
    • Michael Widenius's avatar
      Fixed MDEV-4394 Sporadic failures in multi_source tests · 6c896bfd
      Michael Widenius authored
      Fixed MDEV-4033 Unable to use slave's temporary directory /tmp - Can't create/write to file '/tmp/SQL_LOAD-' (Errcode: 17 "File exists")
      - Cache value of check_temp_dir() to avoid race condition
      - Set $rpl_server_count to avoid error in show_rpl_debug_info.inc
      
      mysql-test/suite/multi_source/info_logs.test:
        Set $rpl_server_count
      mysql-test/suite/multi_source/multisource.test:
        Set $rpl_server_count
      mysql-test/suite/multi_source/relaylog_events.test:
        Set $rpl_server_count
      mysql-test/suite/multi_source/reset_slave.test:
        Set $rpl_server_count
      mysql-test/suite/multi_source/simple.test:
        Set $rpl_server_count
      mysql-test/suite/multi_source/skip_counter.test:
        Set $rpl_server_count
      mysql-test/suite/multi_source/status_vars.test:
        Set $rpl_server_count
      sql/slave.cc:
        Cache value of check_temp_dir() to avoid race condition
      6c896bfd
    • Sergei Golubchik's avatar
      compiler warnings · 251b1799
      Sergei Golubchik authored
      251b1799
    • Sergei Golubchik's avatar
      5.5 merge · b160f8f0
      Sergei Golubchik authored
      b160f8f0
    • Sergei Golubchik's avatar
      add missing tests · 9dcaa725
      Sergei Golubchik authored
      9dcaa725
  5. 13 Apr, 2013 5 commits
    • Igor Babaev's avatar
      Fixed compiler complains. · fe965376
      Igor Babaev authored
      fe965376
    • Sergey Petrunya's avatar
      Temporarily disable show_explain.test · f80af304
      Sergey Petrunya authored
      f80af304
    • Sergey Petrunya's avatar
      Merge · 6b7c317a
      Sergey Petrunya authored
      6b7c317a
    • Sergey Petrunya's avatar
      Temporarily disable show_explain.test · 30154304
      Sergey Petrunya authored
      30154304
    • Alexey Botchkov's avatar
      MDEV-318 IF (NOT) EXIST clauses for ALTER TABLE (MWL #252). · 9b5df7a6
      Alexey Botchkov authored
               Syntax modified to allow statements:
                     ALTER TABLE ADD/DROP COLUMN
                     ALTER TABLE ADD/DROP INDEX
                     ALTER TABLE ADD/DROP FOREIGN KEY
                     ALTER TABLE ADD/DROP PARTITION
                     ALTER TABLE CHANGE COLUMN
                     ALTER TABLE MODIFY COLUMN
                     DROP INDEX
               to have IF (NOT) EXISTS options.
               Appropriate implementations added to mysql_alter_table().
            
            per-file comments:
              mysql-test/r/alter_table.result
            MDEV-318 IF (NOT) EXIST clauses for ALTER TABLE (MWL #252).
                    test result updated.
              mysql-test/r/fulltext.result
            MDEV-318 IF (NOT) EXIST clauses for ALTER TABLE (MWL #252).
              mysql-test/r/partition.result
                    test result updated.
            MDEV-318 IF (NOT) EXIST clauses for ALTER TABLE (MWL #252).
              mysql-test/t/alter_table.test
                    tests added.
            MDEV-318 IF (NOT) EXIST clauses for ALTER TABLE (MWL #252).
              mysql-test/t/fulltext.test
            MDEV-318 IF (NOT) EXIST clauses for ALTER TABLE (MWL #252).
                    tests added.
              mysql-test/t/partition.test
            MDEV-318 IF (NOT) EXIST clauses for ALTER TABLE (MWL #252).
                    tests added.
              sql/field.cc
            MDEV-318 IF (NOT) EXIST clauses for ALTER TABLE (MWL #252).
                    create_if_not_exists field added.
              sql/field.h
            MDEV-318 IF (NOT) EXIST clauses for ALTER TABLE (MWL #252).
                    create_if_not_exists field added.
              sql/partition_info.h
            MDEV-318 IF (NOT) EXIST clauses for ALTER TABLE (MWL #252).
                    has_unique_name made public.
              sql/sp_head.cc
            MDEV-318 IF (NOT) EXIST clauses for ALTER TABLE (MWL #252).
              sql/sql_class.cc
            MDEV-318 IF (NOT) EXIST clauses for ALTER TABLE (MWL #252).
                    create_if_not_exists inited.
              sql/sql_class.h
            MDEV-318 IF (NOT) EXIST clauses for ALTER TABLE (MWL #252).
                    create_if_not_exists inited.
              sql/sql_lex.cc
            MDEV-318 IF (NOT) EXIST clauses for ALTER TABLE (MWL #252).
                    check_exists inited.
              sql/sql_lex.h
            MDEV-318 IF (NOT) EXIST clauses for ALTER TABLE (MWL #252).
                    check_exists inited.
              sql/sql_parse.cc
            MDEV-318 IF (NOT) EXIST clauses for ALTER TABLE (MWL #252).
              check_exists inited.
              sql/sql_table.cc
            MDEV-318 IF (NOT) EXIST clauses for ALTER TABLE (MWL #252).
                    handle_if_exists_options() added.
                    it's called in mysql_alter_table().
              sql/sql_trigger.cc
            MDEV-318 IF (NOT) EXIST clauses for ALTER TABLE (MWL #252).
                    check_exists instead of drop_if_exists.
              sql/sql_view.cc
            MDEV-318 IF (NOT) EXIST clauses for ALTER TABLE (MWL #252).
                    check_exists instead of drop_if_exists.
              sql/sql_yacc.yy
            MDEV-318 IF (NOT) EXIST clauses for ALTER TABLE (MWL #252).
                    sintax modified.
      9b5df7a6
  6. 12 Apr, 2013 4 commits
    • Igor Babaev's avatar
      Merge 10.0-base->mwl253 · 69624ab5
      Igor Babaev authored
      69624ab5
    • Alexey Botchkov's avatar
      MDEV-3917 multiple use locks (GET_LOCK) in one connection. · 7b0985c9
      Alexey Botchkov authored
          The patch contributed by Konstantin Osipov applied.
          Native comments:
            Implement multiple user-level locks per connection.
      
            GET_LOCK() function in MySQL allows a connection  to hold at most
            one user level lock. Taking a new lock automatically releases the
            old lock, if any.
      
            The limit of one lock per session existed since  early versions
            of MySQL didn't have a deadlock detector for SQL locks.
            MDL patches in MySQL 5.5 added a deadlock detector,
            so starting from 5.5 it became possible to take multiple locks
            in any order -- a deadlock, should it occur, would be detected
            and an error returned to the client which closed the wait chain.
      
            This is exactly what is done in this patch: ULLs are moved
            to use MDL subsystem.
      7b0985c9
    • Michael Widenius's avatar
      Increase default value of max_binlog_cache_size and max_binlog_stmt_cache_size to ulonglong_max. · 64c72159
      Michael Widenius authored
      This fixes that by default LOAD DATA INFILE will not generate the error:
      "Multi-statement transaction required more than 'max_binlog_cache_size' bytes of storage..."
      
      
      mysql-test/suite/sys_vars/r/max_binlog_cache_size_basic.result:
        Updated test case
      mysql-test/suite/sys_vars/r/max_binlog_stmt_cache_size_basic.result:
        Updated test case
      sql/sys_vars.cc:
        Increase default value of max_binlog_cache_size and max_binlog_stmt_cache_size to ulonglong_max.
      64c72159
    • Igor Babaev's avatar
      Fixed bug mdev-4389. · 72cbe23d
      Igor Babaev authored
      The selectivity of a range degenerated into a point never should be set to 0.
      72cbe23d
  7. 11 Apr, 2013 4 commits
  8. 10 Apr, 2013 2 commits
    • Sergei Golubchik's avatar
      portability fixes for mysql-test · 6675e769
      Sergei Golubchik authored
      mysql-test/r/mysqld--help.result:
        that's default to number of CPUs
      mysql-test/suite/archive/discover.test:
        move_file uses rename(2), which may end up
        with "Invalid cross-device link"
      mysql-test/suite/archive/partition_archive.test:
        on Solaris the error message is different
      6675e769
    • Sergei Golubchik's avatar
      Linking problem on Windows · 3fad8d73
      Sergei Golubchik authored
      3fad8d73
  9. 09 Apr, 2013 3 commits