1. 25 Jul, 2007 1 commit
    • unknown's avatar
      BUG#29806 - binlog_innodb.test creates a server log · 21337588
      unknown authored
      Stopping mysql server could result in an entry in mysql error
      file: "InnoDB: Error: MySQL is freeing a thd".
      
      This happened because InnoDB assumes that the server will never
      call external_lock(F_UNLCK) in case external_lock(READ/WRITE)
      failed.
      
      Prior to this patch we haven't had strict definition whether
      external_lock(F_UNLCK) must be called in case external_lock(READ/WRITE)
      fails.
      
      This patch states that we never call external_lock(F_UNLCK) in case
      external_lock(READ/WRITE) fails.
      
      
      mysql-test/suite/binlog/t/disabled.def:
        Re-enabled binlog_innodb and binlog_killed tests.
      sql/ha_ndbcluster.cc:
        Restore handler state in case external_lock() failed.
      sql/ha_partition.cc:
        Do not call external_lock(F_UNLCK) in case external_lock(READ/WRITE) failed.
      sql/lock.cc:
        Do not call external_lock(F_UNLCK) in case external_lock(READ/WRITE) failed.
      storage/myisammrg/myrg_locking.c:
        Restore handler state in case external_lock() failed.
      21337588
  2. 20 Jul, 2007 3 commits
  3. 19 Jul, 2007 2 commits
    • unknown's avatar
      Merge mysql.com:/home/svoj/devel/mysql/BUG26325/mysql-5.0-engines · 9b074354
      unknown authored
      into  mysql.com:/home/svoj/devel/mysql/BUG26325/mysql-5.1-engines
      
      
      mysql-test/r/check.result:
        Auto merged
      mysql-test/t/check.test:
        Auto merged
      sql/handler.cc:
        Auto merged
      9b074354
    • unknown's avatar
      BUG#26325 - TEMPORARY TABLE "corrupt" after first read, according · 43ddc216
      unknown authored
                  to CHECK TABLE
      
      CHECK/REPAIR TABLE reports "File not found" error when issued
      against temporary table.
      
      Fixed by disabling a brunch of code (in case it gets temporary table)
      that is responsible for updating frm version as it is not needed
      for temporary tables.
      
      
      mysql-test/r/check.result:
        A test case for BUG#26325.
      mysql-test/t/check.test:
        A test case for BUG#26325.
      sql/handler.cc:
        No need to update frm version in case table was created or checked
        by server with the same version. This also ensures that we do not
        update frm version for temporary tables as this code doesn't support
        temporary tables.
      43ddc216
  4. 18 Jul, 2007 2 commits
    • unknown's avatar
      BUG#28838 - duplicate external_lock in mysql_alter_table · 700e3219
      unknown authored
      Removed duplicate call to handler::external_lock() when
      ALTER TABLE that doesn't need to copy a table (quick
      ALTER TABLE) was executed.
      
      Also quick ALTER TABLE doesn't hold LOCK_open anymore when
      it enables/disables indexes.
      
      
      sql/sql_table.cc:
        Do not call handler::external_lock() as table is already locked
        by open_ltable().
        
        Also do not hold LOCK_open mutex for alter_table_manage_keys() as
        this function doesn't require LOCK_open (LOCK_open is required by
        wait_while_table_is_used() only).
      700e3219
    • unknown's avatar
      BUG#29839 - lowercase_table3.test: Cannot find table test/T1 from · c783167b
      unknown authored
                  the internal data dictiona
      - re-enabled lowercase_table3 test;
      - added a rule to throw away expected warning to mtr_report.pl;
      - fixed a test case to produce unique warning.
      
      
      mysql-test/lib/mtr_report.pl:
        Throw away a warning produced by BUG#29839 test.
      mysql-test/r/lowercase_table3.result:
        Modified a test case to throw away expected warning.
      mysql-test/t/disabled.def:
        Re-enabled lowercase_table3.test.
      mysql-test/t/lowercase_table3.test:
        Modified a test case to throw away expected warning.
      c783167b
  5. 17 Jul, 2007 3 commits
  6. 16 Jul, 2007 7 commits
  7. 15 Jul, 2007 1 commit
    • unknown's avatar
      Post-merge fixes · 9e552023
      unknown authored
      Disabled tests which break automatic merging due to
      non-empty warnings file.
      
      9e552023
  8. 14 Jul, 2007 7 commits
    • unknown's avatar
      Merge chilla.local:/home/mydev/mysql-5.0-axmrg · 58be49dc
      unknown authored
      into  chilla.local:/home/mydev/mysql-5.1-axmrg
      
      58be49dc
    • unknown's avatar
      Merge chilla.local:/home/mydev/mysql-5.1-amain · 27e51d69
      unknown authored
      into  chilla.local:/home/mydev/mysql-5.1-axmrg
      
      
      mysql-test/lib/mtr_report.pl:
        Auto merged
      mysql-test/r/show_check.result:
        Auto merged
      mysql-test/suite/ndb/r/ndb_update.result:
        Auto merged
      mysql-test/suite/ndb/t/ndb_single_user.test:
        Auto merged
      mysql-test/suite/ndb/t/ndb_update.test:
        Auto merged
      mysql-test/suite/parts/r/rpl_partition.result:
        Auto merged
      mysql-test/suite/parts/t/rpl_partition.test:
        Auto merged
      mysql-test/t/disabled.def:
        Auto merged
      sql/mysql_priv.h:
        Auto merged
      sql/sql_class.cc:
        Auto merged
      mysql-test/suite/rpl/r/rpl_sp.result:
        Auto merged
      27e51d69
    • unknown's avatar
      Merge chilla.local:/home/mydev/mysql-4.1-axmrg · fc7e1318
      unknown authored
      into  chilla.local:/home/mydev/mysql-5.0-axmrg
      
      fc7e1318
    • unknown's avatar
      Merge chilla.local:/home/mydev/mysql-5.0-amain · 81e139fd
      unknown authored
      into  chilla.local:/home/mydev/mysql-5.0-axmrg
      
      81e139fd
    • unknown's avatar
      Merge chilla.local:/home/mydev/mysql-4.1-amain · 2b768c23
      unknown authored
      into  chilla.local:/home/mydev/mysql-4.1-axmrg
      
      2b768c23
    • unknown's avatar
      Merge mysql.com:/home/svoj/devel/mysql/BUG29734/mysql-5.0-engines · 491725a5
      unknown authored
      into  mysql.com:/home/svoj/devel/mysql/BUG29734/mysql-5.1-engines
      
      
      sql/sql_class.cc:
        Manual merge.
      491725a5
    • unknown's avatar
      BUG#29734 - thread_id=0 in binary log which leads to temporary table conflicts · 260780d8
      unknown authored
      pseudo_thread_id was reset to zero via mysql_change_user() handling
      whereas there is no reason to do that.  Moreover, having two
      concurrent threads that change user and create a namesake temp tables
      leads to recording the dup pair of queries:
      
         set @@session.pseudo_thread_id = 0;
         CREATE temporary table `the namesake`;
      
      which will stall the slave as the second instance can not be created.
      And that is the bug case.
      
      Fixed by correcting pseudo_thread_id value after mysql_change_user().
      
      
      sql/sql_class.cc:
        Fixed that pseudo_thread_id was set to 0 after mysql_change_user().
      260780d8
  9. 13 Jul, 2007 1 commit
  10. 12 Jul, 2007 4 commits
    • unknown's avatar
      BUG#29464 - load data infile into table with big5 chinese fulltext index · f205d0ae
      unknown authored
                  hangs 100% cpu
      
      Moved a test case for BUG#29464 into fulltext3.test, since it requires big5
      character set.
      
      
      mysql-test/r/fulltext.result:
        Moved a test case for BUG#29464 into fulltext3.test, since it requires big5
        character set.
      mysql-test/r/fulltext3.result:
        Moved a test case for BUG#29464 into fulltext3.test, since it requires big5
        character set.
      mysql-test/t/fulltext.test:
        Moved a test case for BUG#29464 into fulltext3.test, since it requires big5
        character set.
      mysql-test/t/fulltext3.test:
        Moved a test case for BUG#29464 into fulltext3.test, since it requires big5
        character set.
      f205d0ae
    • unknown's avatar
      BUG#29445 - match ... against () never returns · e1a697c8
      unknown authored
      Part 2:
      Searching fulltext index for a word with boolean mode truncation
      operator may cause infinite loop.
      
      The problem was that "smarter index merge" was used with "trunc-words",
      which must never happen.
      
      Affects 5.1 only.
      
      
      mysql-test/r/fulltext.result:
        Addition to a test case for BUG#29445.
      mysql-test/t/fulltext.test:
        Addition to a test case for BUG#29445.
      storage/myisam/ft_boolean_search.c:
        Fulltext "smarter index merge" optimization assumes that rows
        it gets are ordered by doc_id. That is not the case when we
        search for a word with truncation operator. It may return
        rows in random order. Thus we may not use "smarter index merge"
        optimization with "trunc-words".
        
        Also fixed compiler warning introduced by Part 1 patch.
      e1a697c8
    • unknown's avatar
      Merge chilla.local:/home/mydev/mysql-5.1-ateam · 341aa0e5
      unknown authored
      into  chilla.local:/home/mydev/mysql-5.1-bug28810
      
      341aa0e5
    • unknown's avatar
      Bug#28158 - table->read_set is set incorrectly, · a4dc99fb
      unknown authored
              causing wrong error message in Falcon
      
      An error message about a duplicate key could show a wrong key
      value when not all columns of the key were used to select the
      rows for update.
      
      Some storage engines return a record with only the selected
      columns filled.
      
      This is fixed by re-reading the record with a read_set which
      includes all columns of the duplicate key after a duplicate key
      error happens and before the error message is printed.
      
      
      mysql-test/r/ndb_update.result:
        Bug#28158 - table->read_set is set incorrectly,
                    causing wrong error message in Falcon
        Added test result.
      mysql-test/t/ndb_update.test:
        Bug#28158 - table->read_set is set incorrectly,
                    causing wrong error message in Falcon
        Added test from falcon_bug_28158.
      sql/sql_update.cc:
        Bug#28158 - table->read_set is set incorrectly,
                    causing wrong error message in Falcon
        Added a function for re-reading a record with a read_set
        that contains all fields used by a duplicate key.
        Called the function before every call to handler::print_error(),
        which could print a duplicate key value.
      a4dc99fb
  11. 11 Jul, 2007 2 commits
  12. 10 Jul, 2007 5 commits
    • unknown's avatar
      BUG#29445 - match ... against () never returns · 43e8245e
      unknown authored
      Part 1:
      Do not perform index search for a plus-word with truncation operator
      in case there are other plus-words in expression.
      
      Specifically this optimization was enforced for expression like
      "+word1 +word2*", but wasn't enforced for expression like
      "+word1 word2*".
      
      
      mysql-test/r/fulltext.result:
        A test case for BUG#29445.
      mysql-test/t/fulltext.test:
        A test case for BUG#29445.
      storage/myisam/ft_boolean_search.c:
        Do not perform index search for a plus-word with truncation operator
        in case there are other plus-words in expression.
        
        Specifically this optimization was enforced for expression like
        "+word1 +word2*", but wasn't enforced for expression like
        "+word1 word2*".
      43e8245e
    • unknown's avatar
      Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-5.1-maint · 816cc183
      unknown authored
      into  mysql.com:/home/ram/work/mysql-5.1-maint
      
      816cc183
    • unknown's avatar
      Fix for bug #29652: csv.test failure: two changes conflict after merge · 2166719e
      unknown authored
      Problem: we don't take into account the length of the data written
      to the temporary data file during update on a CSV table.
      
      Fix: properly calculate the data file length during update.
      
      
      mysql-test/r/csv.result:
        Fix for bug #29652: csv.test failure: two changes conflict after merge
          - test result adjusted.
      storage/csv/ha_tina.cc:
        Fix for bug #29652: csv.test failure: two changes conflict after merge
          - adjust local_saved_data_file_length in case of update as well.
      storage/csv/ha_tina.h:
        Fix for bug #29652: csv.test failure: two changes conflict after merge
          - adjust local_saved_data_file_length in case of update as well.
      2166719e
    • unknown's avatar
      Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.1-new-maint · 0361ba61
      unknown authored
      into  whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-new-maint
      
      
      mysql-test/suite/rpl/r/rpl_row_tabledefs_2myisam.result:
        Auto merged
      mysql-test/suite/rpl/r/rpl_row_tabledefs_3innodb.result:
        Auto merged
      0361ba61
    • unknown's avatar
      Bug #29570 · 0df2e765
      unknown authored
      - correct result files
      
      0df2e765
  13. 09 Jul, 2007 2 commits