1. 05 May, 2013 1 commit
    • Michael Widenius's avatar
      Fixed errors and compiler warnings found by buildbot · 5333dafa
      Michael Widenius authored
      Solaris fixes:
      - Fixed that wait_timeout_func and wait_timeout tests works on solaris
      - We have to compile without NO_ALARM on Solaris as Solaris doesn't support timeouts on sockets with setsockopt(.. SO_RCVTIMEO).
      - Fixed that compile-solaris-amd64-debug works (before that we got a wrong ELF class: ELFCLASS64 on linkage)
      - Added missing sync_with_master
      Other bug fixes:
      - Free memory for rpl_global_gtid_binlog_state before exit() to avoid 'accessing uninitalized mutex' error.
      
      
      
      BUILD/FINISH.sh:
        Fixed issues on Solaris with ksh
      BUILD/compile-solaris-amd64-debug:
        Added missing -m64 flag
      configure.cmake:
        We have to compile without NO_ALARM on Solaris as Solaris doesn't support timeouts on sockets with setsockopt(.. SO_RCVTIMEO)
      mysql-test/suite/rpl/t/rpl_gtid_mdev4473.test:
        - Added missing sync_with_master (fix by knielsen)
      sql-common/client.c:
        Added () to get rid of compiler warning
      sql/item_strfunc.cc:
        Fixed compiler warning
      sql/log.cc:
        Free memory for static variable rpl_global_gtid_binlog_state before exit()
        - If we are compiling with safemalloc, we would try to call sf_free() for some members after sf_terminate() was called, which would result of trying to access the uninitalized mutex 'sf_mutex'
      sql/multi_range_read.cc:
        Fixed compiler warnings of converting double to ulong.
      sql/opt_range.cc:
        Fixed compiler warnings of converting double to ulong or uint
        - Better to have all variables that can be number of rows as 'ha_rows'
      sql/rpl_gtid.cc:
        Added rpl_binlog_state::free() to be able to free memory for static objects before exit()
      sql/rpl_gtid.h:
        Added rpl_binlog_state::free() to be able to free memory for static objects before exit()
      sql/set_var.cc:
        Fixed compiler warning
      sql/sql_join_cache.cc:
        Fixed compiler warnings of converting double to uint
      sql/sql_show.cc:
        Added cast to get rid of compiler warning
      sql/sql_statistics.cc:
        Remove code that didn't do anything.
        (store_record() with record[0] is a no-op)
      storage/xtradb/os/os0file.c:
        Added  __attribute__ ((unused))
      support-files/compiler_warnings.supp:
        Ignore warnings from atomic_add_64_nv
        (was not able to fix this with a cast as the macro is a bit different between systems)
      vio/viosocket.c:
        Added more DBUG_PRINT
      5333dafa
  2. 03 May, 2013 1 commit
    • unknown's avatar
      MDEV-4473: mysql_binlog_send() starts sending events from wrong GTID position... · 5aa0d185
      unknown authored
      MDEV-4473: mysql_binlog_send() starts sending events from wrong GTID position in some master failover scenarios
      
      Suppose binlog file X has in its Gtid_list_event: 0-1-3,0-2-5, and suppose the
      slave requests to start replicating after 0-1-3.
      
      In this case the bug was that master would start sending events from the start
      of X. This is wrong, because 0-2-4 and 0-2-5 are contained in X-1, and are
      needed by the slave. So these events were lost.
      
      On the other hand, if the slave requested 0-2-5, then it _is_ correct to start
      sending from the beginning of binlog file X, because 0-2-5 is the last GTID
      logged in earlier binlogs. The difference is that 0-2-5 is the last of the
      GTIDs in the Gtid_list_event. The problem was that the code did not check that
      the matched GTID was the last one in the list.
      
      Fixed by checking if the gtid requested by slave that matches a gtid in the
      Gtid_list_event is the last event for that domain in the list. If not, go back
      to a prior binlog to ensure all needed events are sent to slave.
      
      mysql-test/include/show_events.inc:
        Backport --let $binlog_file=LAST, used by MDEV-4473 test case.
      5aa0d185
  3. 02 May, 2013 2 commits
    • Michael Widenius's avatar
      Instead of writing "Errcode" to the log for Slave errors, use "Internal MariaDB error code" · eb75edfb
      Michael Widenius authored
      This makes it clear that the error code has nothing to do with errno.
      
      
      mysql-test/include/mtr_warnings.sql:
        Fixed suppression for new slave error messages
      mysql-test/lib/My/Test.pm:
        Use 'send' instead of 'print' to avoid errors about "wrong class ... back attempt"
      mysql-test/lib/v1/mtr_report.pl:
        Fixed suppression for new slave error messages
      mysql-test/mysql-test-run.pl:
        Fixed suppression for new slave error messages
        Removed warning from perl 5.16.2 about arrays
      mysql-test/r/flush_read_lock.result:
        Fixed suppression for new slave error messages
      sql/rpl_reporting.cc:
        Instead of writing "Errcode" to the log for Slave errors, use "Internal MariaDB error code"
      eb75edfb
    • Michael Widenius's avatar
      Fixed: MDEV-4352; LOAD DATA was not multi-source safe · 8cdb118a
      Michael Widenius authored
      - Calls to cleanup_load_tmpdir() could delete temporary files for another master connection
      - Concurrent LOAD DATA commands from two master connections could use the same file name
      
      Other bug fixes:
      - Enlarge buffer for connection names with 'special characters' one can't store in filenames
      
      Optimization:
      - Don't do 'lower case' of connection names. We can use cmp_connection_name, where we already have the connection name in lower case.
      
      
      mysql-test/suite/multi_source/load_data.result:
        Test case for MDEV-4352
      mysql-test/suite/multi_source/load_data.test:
        Test case for MDEV-4352
      sql/log_event.cc:
        Fixed: MDEV-4352
        - Calls to cleanup_load_tmpdir() could delete temporary files for another master connection
        - Concurrent LOAD DATA commands from two master connections could use the same file name
        
        The fix was to add the connection name (if one exists) to all slave temporary files used by LOAD DATA
      sql/rpl_mi.cc:
        Enlarge buffer for connection names with 'special characters' one can't store in filenames
        Use mi->cmp_connection_name for connection file names.
      sql/rpl_rli.cc:
        Use mi->cmp_connection_name for connection file names.
      sql/slave.cc:
        Removed not needed empty line
      sql/sql_const.h:
        Added MAX_FILENAME_MBWIDTH to be able to calculate buffer length for connection_names stored in file names
      sql/sql_repl.cc:
        Use mi->cmp_connection_name for connection file names.
      8cdb118a
  4. 29 Apr, 2013 1 commit
  5. 25 Apr, 2013 1 commit
    • unknown's avatar
      Fix more failures in buildbot. · ced65e21
      unknown authored
      Server shutdown timeout of 10 seconds in test cases is too little for heavily
      loaded test servers.
      
      Fix innodb_bug12902967 to not fail with wrong error log output if we have
      warnings about too few AIO handles for InnoDB.
      
      Fix typo which could lead to unnecessarily replacing GTID event with dummy
      event.
      ced65e21
  6. 24 Apr, 2013 1 commit
    • unknown's avatar
      Add missing check for thd->killed in mysql_binlog_send(). · 6b97512b
      unknown authored
      The slave dump thread running on the master only checked thd->killed whenever
      it reached the end of a binlog file, not between events. This could
      unnecessarily delay server shutdown.
      
      This was found by code inspection while tracking down some occasional "forcing
      close of thread..." errors in Buildbot. Hopefully this will fix the failures,
      but the fix is correct in any case.
      
      Also increase the wait during server shutdown, 2 seconds is a bit tight in
      case of heavy I/O stall, and it seems better to delay shutdown a bit than
      force-kill threads unnecessarily.
      
      Also fix some races in test cases that restart the mysqld server. The .expect
      file should be changed with --append_file, --remove_file + --write_file
      creates a short window where mysqld can error out due to .expect file missing.
      6b97512b
  7. 22 Apr, 2013 4 commits
  8. 21 Apr, 2013 3 commits
  9. 20 Apr, 2013 3 commits
  10. 19 Apr, 2013 4 commits
  11. 18 Apr, 2013 4 commits
  12. 17 Apr, 2013 6 commits
    • Igor Babaev's avatar
      Fixed a typo/bug that could lead to wrong selectivity numbers for · ac8333e4
      Igor Babaev authored
      tables retrieved by range scans.
      
      Added comments forgotten in the previous patch. 
      ac8333e4
    • Michael Widenius's avatar
      Changed the client library to only mark memory as THREAD_SPECIFIC if one has called · 8b714e50
      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
      8b714e50
    • Michael Widenius's avatar
      Fixed compiler warnings and a not critical memory leak · 8e526985
      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
      8e526985
    • unknown's avatar
    • unknown's avatar
    • unknown's avatar
      Merge 5.5->10.0-base · 585d7bbf
      unknown authored
      585d7bbf
  13. 16 Apr, 2013 8 commits
    • Igor Babaev's avatar
      Merge 10.0-base -> mwl253 · 2e54ad03
      Igor Babaev authored
      2e54ad03
    • unknown's avatar
      debug_sync is only available in debug build. · 4656060f
      unknown authored
      4656060f
    • unknown's avatar
      Fixes for stuff seen in buildbot: · 0508f766
      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.
      0508f766
    • unknown's avatar
      Fix race in test case. · eb95ebf9
      unknown authored
      eb95ebf9
    • Lixun Peng's avatar
      Makeing rpl_filter for each Master_info. · 82eedf4e
      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.
      82eedf4e
    • unknown's avatar
      MDEV-3882: .deb versions lower than upstream repo, causing install failure · 58a77aaf
      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.
      58a77aaf
    • Igor Babaev's avatar
      Merge mwl253 -> 10.0-base · aa052eeb
      Igor Babaev authored
      aa052eeb
    • Igor Babaev's avatar
      Added comments. · b12b3cae
      Igor Babaev authored
      Renamed the virtual method middle_point_pos for the class Field to
      pos_in_interval.
      b12b3cae
  14. 15 Apr, 2013 1 commit