1. 29 Oct, 2008 2 commits
    • Mats Kindahl's avatar
      Post-merge fixes to fix test cases. · f5504826
      Mats Kindahl authored
      mysql-test/extra/rpl_tests/rpl_log.test:
        Using RESET MASTER in the middle of a sequence of statements cause
        a race condition between the dump thread sending the preceeding
        statements to the slave and the RESET MASTER.
      mysql-test/suite/federated/federated.test:
        Fixing include paths.
      mysql-test/suite/federated/federated_bug_25714.test:
        Removing extreneous lines added by merge.
      mysql-test/suite/rpl/t/rpl_circular_for_4_hosts.test:
        Correcting typo (the spaces following the connection name was included as part of the name).
      mysql-test/t/distinct.test:
        Correcting paths.
      f5504826
    • Mats Kindahl's avatar
      Merging with 5.1-rpl · 24cf5445
      Mats Kindahl authored
      24cf5445
  2. 24 Oct, 2008 1 commit
  3. 23 Oct, 2008 2 commits
    • Mats Kindahl's avatar
      Merging 5.1 main into 5.1-rpl · a1df058d
      Mats Kindahl authored
      a1df058d
    • Sven Sandberg's avatar
      BUG#35701: please allow test language variables in connection and sync_slave_with_master · 0ef4f19f
      Sven Sandberg authored
      Problem: In the mysqltest language, it was not possible to set the current
      connection from a variable, and it was not possible to read the current
      connection.
      Fix: Allow setting the connection from a variable, like:
      connection $variable;
      and introduce the mysqltest language variable $CURRENT_CONNECTION, which
      holds the name of the current connection.
      
      
      client/mysqltest.cc:
        - Made select_connection use the common argument parser instead of its own
        home-rolled version. That allows variable expansion, for instance.
        - Made select_connection_name set the variable $CURRENT_CONNECTION, so that
        test scripts can use that.
        - Refactored a bit so that stuff that needs to be done when changing connection
        is located to one place.
      mysql-test/t/mysqltest.test:
        Added test case for $CURRENT_CONNECTION and "connection $variable"
      0ef4f19f
  4. 21 Oct, 2008 1 commit
  5. 18 Oct, 2008 1 commit
    • Sven Sandberg's avatar
      BUG#39851: race between check_testcase and tests running 'show processlist' · de500cab
      Sven Sandberg authored
      Problem 1: not_embedded_server runs SELECT FROM I_S.PROCESSLIST near the beginning.
      check_testcase executes a query to the server before that. There is a race here,
      because there is no guarantee that the thread executing check_testcase's query is
      finished.
      Problem 2: The SELECT FROM I_S.PROCESSLIST doens't seem very useful in the test.
      It's at least misplaced.
      Fix to both problems: Comment out SELECT FROM I_S.PROCESSLIST.
      
      
      mysql-test/t/not_embedded_server.test:
        Commented out failing / useless test.
      de500cab
  6. 13 Oct, 2008 2 commits
    • Sven Sandberg's avatar
      BUG#39853: lowercase_table3 fails on powermacg5 in rpl tree · e40c2137
      Sven Sandberg authored
      Problem: during a refactoring of mtr, a pattern for suppressing a warning from lowercase_table3 was lost.
      Fix: re-introduce the suppression.
      Problem 2: suppression was misspelt as supression. Fixed by adding a p.
      
      
      mysql-test/include/mtr_warnings.sql:
        fixed spelling error
      mysql-test/suite/rpl/t/rpl_bug33931.test:
        fixed spelling error
      mysql-test/suite/rpl/t/rpl_idempotency.test:
        fixed spelling error
      mysql-test/suite/rpl/t/rpl_temporary.test:
        fixed spelling error
      mysql-test/suite/rpl/t/rpl_temporary_errors.test:
        fixed spelling error
      mysql-test/t/lowercase_table3.test:
        fixed spelling error
      e40c2137
    • Sven Sandberg's avatar
      BUG#38817: please make mtr analyze crashes better · 8801ffbc
      Sven Sandberg authored
      Post-push fixes making it work on pushbuild's valgrind host, and clarifying the output.
      
      
      mysql-test/lib/My/CoreDump.pm:
        - Improved parsing of mtr output so that it works on pushbuild's "valgrind" host.
        - Added stack trace for the thread that coredumped, to make output more readable when there are many threads.
        - Added explanation of what the output consists of.
        - Added early removal of temp file.
      8801ffbc
  7. 11 Oct, 2008 3 commits
  8. 10 Oct, 2008 3 commits
  9. 09 Oct, 2008 4 commits
  10. 08 Oct, 2008 19 commits
  11. 07 Oct, 2008 2 commits
    • Gleb Shchepa's avatar
      7c70643d
    • Gleb Shchepa's avatar
      Bug #38691: segfault/abort in ``UPDATE ...JOIN'' while · fd777ae1
      Gleb Shchepa authored
                ``FLUSH TABLES WITH READ LOCK''
      
      Concurrent execution of 1) multitable update with a
      NATURAL/USING join and 2) a such query as "FLUSH TABLES
      WITH READ LOCK" or "ALTER TABLE" of updating table led
      to a server crash.
      
      
      The mysql_multi_update_prepare() function call is optimized
      to lock updating tables only, so it postpones locking to
      the last, and if locking fails, it does cleanup of modified
      syntax structures and repeats a query analysis.  However,
      that cleanup procedure was incomplete for NATURAL/USING join
      syntax data: 1) some Field_item items pointed into freed
      table structures, and 2) the TABLE_LIST::join_columns fields
      was not reset.
      
      Major change:
        short-living Field *Natural_join_column::table_field has
        been replaced with long-living Item*.
      
      
      mysql-test/r/lock_multi.result:
        Added test case for bug #38691.
      mysql-test/t/lock_multi.test:
        Added test case for bug #38691.
      sql/item.cc:
        Bug #38691: segfault/abort in ``UPDATE ...JOIN'' while
                  ``FLUSH TABLES WITH READ LOCK''
        
        The Item_field constructor has been modified to allocate
        and copy original database/table/field names always (not
        during PS preparation/1st execution only), because
        an initialization of Item_field items with a pointer to
        short-living Field structures is a common practice.
      sql/sql_base.cc:
        Bug #38691: segfault/abort in ``UPDATE ...JOIN'' while
                  ``FLUSH TABLES WITH READ LOCK''
        
        1) Type adjustment for Natural_join_column::table_field
           (Field to Item_field);
        2) The setup_natural_join_row_types function has been
           updated to take into account new
           first_natural_join_processing flag to skip unnecessary
           reinitialization of Natural_join_column::join_columns
           during table reopening after lock_tables() failure
           (like the 'first_execution' flag for PS).
      sql/sql_lex.cc:
        Bug #38691: segfault/abort in ``UPDATE ...JOIN'' while
                  ``FLUSH TABLES WITH READ LOCK''
        
        Initialization of the new
        st_select_lex::first_natural_join_processing flag has
        been added.
      sql/sql_lex.h:
        Bug #38691: segfault/abort in ``UPDATE ...JOIN'' while
                  ``FLUSH TABLES WITH READ LOCK''
        
        The st_select_lex::first_natural_join_processing flag
        has been added to skip unnecessary rebuilding of
        NATURAL/USING JOIN structures during table reopening
        after lock_tables failure.
      sql/sql_update.cc:
        Bug #38691: segfault/abort in ``UPDATE ...JOIN'' while
                  ``FLUSH TABLES WITH READ LOCK''
        
        Extra cleanup calls have been added to reset
        Natural_join_column::table_field items.
      sql/table.cc:
        Bug #38691: segfault/abort in ``UPDATE ...JOIN'' while
                  ``FLUSH TABLES WITH READ LOCK''
        
        Type adjustment for Natural_join_column::table_field
        (Field to Item_field).
      sql/table.h:
        Bug #38691: segfault/abort in ``UPDATE ...JOIN'' while
                  ``FLUSH TABLES WITH READ LOCK''
        
        Type of the Natural_join_column::table_field field has
        been changed from Field that points into short-living
        TABLE memory to long-living Item_field that can be
        linked to (fixed) reopened table.
      fd777ae1