1. 31 May, 2007 1 commit
  2. 30 May, 2007 20 commits
    • unknown's avatar
      Merge aelkin@bk-internal.mysql.com:/home/bk/mysql-5.0-rpl · fec3d7c6
      unknown authored
      into  dsl-hkibras1-ff5dc300-70.dhcp.inet.fi:/tmp/merge_5.0
      
      
      mysql-test/t/binlog_killed.test:
        manual merge bug#22725 test
      fec3d7c6
    • unknown's avatar
      bug#22725 · dd190b0e
      unknown authored
      refining the test because of Bug #28786 'reset master' does not reset binlogging on embeded server
      
      
      mysql-test/t/binlog_killed.test:
        the test can not pass on embedded server. Setting the include-guard.
      dd190b0e
    • unknown's avatar
      a10cc718
    • unknown's avatar
      Merge mysql.com:/nfsdisk1/lars/bkroot/mysql-5.1-new-rpl · 44f2d02d
      unknown authored
      into  mysql.com:/nfsdisk1/lars/bk/mysql-5.1-new-rpl
      
      
      44f2d02d
    • unknown's avatar
      Masking out error that is not generated by the test (rpl_ndb_basic.test) itself · 647923f9
      unknown authored
      
      mysql-test/r/rpl_ndb_basic.result:
        Masking out error that is not generated by the test itself
      mysql-test/t/rpl_ndb_basic.test:
        Masking out error that is not generated by the test itself
      647923f9
    • unknown's avatar
      Merge aelkin@bk-internal.mysql.com:/home/bk/mysql-5.1-rpl · 9b13368d
      unknown authored
      into  dsl-hkibras1-ff5dc300-70.dhcp.inet.fi:/home/elkin/MySQL/TEAM/BARE/mysql-5.1-new-rpl
      
      
      9b13368d
    • unknown's avatar
      bug#22725 · 45a6e67f
      unknown authored
      the test is not supposed for row format. the include-guard is set.
      
      
      mysql-test/t/binlog_killed.test:
        the test does not apply to rbr
      45a6e67f
    • unknown's avatar
      Merge aelkin@bk-internal.mysql.com:/home/bk/mysql-5.1-rpl · c963c256
      unknown authored
      into  dsl-hkibras1-ff5dc300-70.dhcp.inet.fi:/home/elkin/MySQL/TEAM/BARE/mysql-5.1-new-rpl
      
      
      c963c256
    • unknown's avatar
      CMakeLists.txt: · 3c6a4bc5
      unknown authored
        Adding strnlen.c into the list of source files.
      
      
      strings/CMakeLists.txt:
        Adding strnlen.c into the list of source files.
      3c6a4bc5
    • unknown's avatar
      bug#17654 --read-from-remote-server causes core · db8df69c
      unknown authored
      fixing FD event issue that showed up on pb.
      
      
      client/mysqlbinlog.cc:
        resetting temp_buf specially for FD event to avoid double-freeing
      db8df69c
    • unknown's avatar
      Merge abarkov@bk-internal.mysql.com:/home/bk/mysql-5.1-rpl · d08ec272
      unknown authored
      into  mysql.com:/home/bar/mysql-5.1.b28558
      
      
      d08ec272
    • unknown's avatar
      Define HAVE_STRNLEN correctly. · 2eba9378
      unknown authored
      
      include/config-win.h:
        strnlen() presents in the build in library only starting from
        Visual Studio 2005, identified by _MSC_VER 1400.
        Previous versions of Visual Studio didn't have this
        function, so they need the MySQL replacement function to be compiled.
      2eba9378
    • unknown's avatar
      Added extra parenthesis to remove compiler warning · d57f3bbb
      unknown authored
      Fixed test case rpl_incident.test (synchronize drop table, masked IO thread behaviour)
      
      
      mysql-test/r/rpl_incident.result:
        Masking master_log_file since IO thread is not synchronized in rpl_incident.test
      mysql-test/t/rpl_incident.test:
        Masking master_log_file since IO thread is not synchronized in rpl_incident.test
        Correcting drop of table so it is synchronized
      sql/log_event.cc:
        Added extra parenthesis to remove compiler warning
      d57f3bbb
    • unknown's avatar
      Fixing wrong memory read problem detected by Valgrind in "xml" test. · 42eab5a2
      unknown authored
      The source of the problem was in my_vsnprintf() implementation.
      
      
      strings/my_vsnprintf.c:
        Fixing a problem in vsnprintf('%.*s', len, ptr)
        When processing the above format, it's incorrect
        to use strlen() because the string is not necessarily
        a null terminated string.
        Changing strlen() followed by set_if_smaller()
        to strnlen() - which covers both cases - limiting
        by '\0' and by "len".
      42eab5a2
    • unknown's avatar
      Merge... · b3949122
      unknown authored
      Merge dsl-hkibras1-ff5dc300-70.dhcp.inet.fi:/home/elkin/MySQL/TEAM/FIXES/5.1/bug27044_slave_dup2unique
      into  dsl-hkibras1-ff5dc300-70.dhcp.inet.fi:/tmp/merge_5.0
      
      
      sql/log_event.cc:
        Auto merged
      b3949122
    • unknown's avatar
      bug#22725 · 73acdb35
      unknown authored
      merge 5.0 with 5.1
      
      
      mysql-test/t/binlog_killed.test:
        offset change in 5.1
      73acdb35
    • unknown's avatar
      Merge dsl-hkibras1-ff5dc300-70.dhcp.inet.fi:/home/elkin/MySQL/TEAM/BARE/5.0 · 34f4dffd
      unknown authored
      into  dsl-hkibras1-ff5dc300-70.dhcp.inet.fi:/tmp/merge_5.0
      
      
      34f4dffd
    • unknown's avatar
      bug#22725 · e5c4d97c
      unknown authored
      test comments correction
      
      
      mysql-test/r/binlog_killed.result:
        changed
      mysql-test/t/binlog_killed.test:
        wrong comments (but important ones) left;
        little refinement in result calc
      e5c4d97c
    • unknown's avatar
      Bug#28600 Yen sign and overline ujis conversion change · c7dfc326
      unknown authored
      Problem: Unicode->UJIS followed incorrect conversion
      rules for U+00A5 YEN SIGN and U+203E OVERLINE,
      so these characters were converted to ujis 0x8E5C
      and 0x8E7E accordingly.
      
      This behaviour would be correct for a JIS-X-0201 based character set,
      but this is wrong for UJIS, which is documented as x-eucjp-unicode-0.9,
      and which is based on ASCII for the range U+0000..U+007F.
      
      Fix:
      removing JIS-X-0201 conversion rules, making UJIS ASCII compatible.
      YEN SIGN and OVERLINE do not have corresponding UJIS characters anymore
      and converted to 0x3F QUESTION MARK, throwing a warning in appropriative cases.
      
      This patch also includes a test covering full UJIS->Unicode->UJIS mapping.
      
      
      sql/field.cc:
        Nicer error message format:
        always use HEX notation when printing warnings about UCS2 values -
        this is more readable.
      strings/ctype-ujis.c:
        Removing incorrect Unicode->UJIS mapping.
        MySQL "UJIS" is x-eucjp-unicode-0.9.
      mysql-test/r/ctype_ujis_ucs2.result:
        New BitKeeper file ``mysql-test/r/ctype_ujis_ucs2.result''
      mysql-test/t/ctype_ujis_ucs2.test:
        New BitKeeper file ``mysql-test/t/ctype_ujis_ucs2.test''
      c7dfc326
    • unknown's avatar
      Merge dsl-hkibras1-ff5dc300-70.dhcp.inet.fi:/home/elkin/MySQL/TEAM/BARE/5.0 · 80d3415b
      unknown authored
      into  dsl-hkibras1-ff5dc300-70.dhcp.inet.fi:/tmp/merge_5.0
      
      
      80d3415b
  3. 29 May, 2007 8 commits
    • unknown's avatar
      bug#22725 · 9a1e9de9
      unknown authored
      combining the final result variable in such way that either option of the test execution
      will yield zero.
      
      
      mysql-test/r/binlog_killed.result:
        results changed
      mysql-test/t/binlog_killed.test:
        there are two options for the test passing:
        1. no rows inserted and the INSERT gets killed, then there is no INSERT query in binlog
        2. all rows inserted, then INSERT gets to binlog and error_code is zero
      9a1e9de9
    • unknown's avatar
      bug#22725 · 54e1f2f0
      unknown authored
      tests refining, see binlog_killed.test file for details
      
      
      mysql-test/r/binlog_killed.result:
        results changed
      mysql-test/t/binlog_killed.test:
        killer conn waits for the first row to appear;
        log-disabling kill query since prey's id is not deterministic;
        correcting pattern to search in binlog for insert query;
      54e1f2f0
    • unknown's avatar
      bug#22725 · 5aec3d0f
      unknown authored
      merge with 5.0
      
      
      sql/sql_class.cc:
        THD::binlog_query receives killed status arg with default the same for Query_log_event
      sql/sql_class.h:
        relocation public binlog_query down to the point where killed_state is declared
      5aec3d0f
    • unknown's avatar
      Merge dsl-hkibras1-ff5dc300-70.dhcp.inet.fi:/home/elkin/MySQL/TEAM/BARE/5.0 · f3734099
      unknown authored
      into  dsl-hkibras1-ff5dc300-70.dhcp.inet.fi:/tmp/merge_5.0
      
      
      sql/sql_insert.cc:
        Auto merged
      f3734099
    • unknown's avatar
      bug#22725 · 70a530e4
      unknown authored
      refining the test.
      
      
      mysql-test/t/binlog_killed.test:
        due to killing reap may catch an error though it's indeterministic.
      70a530e4
    • unknown's avatar
      bug#22725 · daa7b8a5
      unknown authored
      result file updated
      
      
      mysql-test/r/binlog_killed.result:
        results updated
      daa7b8a5
    • unknown's avatar
      Bug#27044 replicated with unique field ndb table allows duplkey inserts · 814e4dd2
      unknown authored
      The bug in that slave version of a table with unique field still was
      able to execute INSERT query as replace whereas it's impossible on master.
      
      The reason of this artifact is wrong usage of ndb->extra:s.
      
      Fixed with resetting flags at do_after.
      There is open issue with symmetrical resetting
         table->file->extra(HA_EXTRA_NO_IGNORE_NO_KEY)
      which i had to hand to bug#27077.
      The test for the current bug was committed in a cset for bug#27320.
      
      
      sql/log_event.cc:
        fixing do_after_row_operation to reset the effect of the extra engine's 
        flags set at do_before;
        comments on meaning of extra flags added;
        execution of table->file->ha_end_bulk_insert() in do_after is not dependant on error;
      814e4dd2
    • unknown's avatar
      Bug#22725 Replication outages from ER_SERVER_SHUTDOWN (1053) set in replication events · 00710d17
      unknown authored
        
      Refining the tests since pb revealed the older version's fragality - the error from SF() due to killed
      may be different on different env:s.
      DBUG_ASSERT instead of assert.
      
      
      mysql-test/r/binlog_killed.result:
        new result file
      mysql-test/t/binlog_killed.test:
        regression for bug#22725 simplified. tests for bug27563, BUG#27565 made inactive.
      sql/sql_insert.cc:
        DBUG_ASSERT
      00710d17
  4. 28 May, 2007 6 commits
    • unknown's avatar
      Merge dsl-hkibras1-ff5dc300-70.dhcp.inet.fi:/home/elkin/MySQL/TEAM/BARE/5.0 · 4ecc9035
      unknown authored
      into  dsl-hkibras1-ff5dc300-70.dhcp.inet.fi:/tmp/merge_5.0
      
      
      sql/log_event.cc:
        Auto merged
      sql/log_event.h:
        Auto merged
      sql/sql_class.h:
        Auto merged
      sql/sql_insert.cc:
        merge with 5.0 bug#22725
      sql/sql_update.cc:
        merge with 5.0 bug#22725
      4ecc9035
    • unknown's avatar
      Bug#22725 Replication outages from ER_SERVER_SHUTDOWN (1053) set in replication events · f27bf2b4
      unknown authored
        
      The reason for the bug was that replaying of a query on slave could not be possible since its event
      was recorded with the killed error. Due to the specific of handling INSERT, which per-row-while-loop is 
      unbreakable to killing, the query on transactional table should have not appeared in binlog unless
      there was  a call to a stored routine that got interrupted with killing (and then there must be an error
      returned out of the loop).
         
      The offered solution added the following rule for binlogging of INSERT that accounts the above
      specifics:
      For INSERT on transactional-table if the error was not set the only raised flag
      is harmless and is ignored via masking out on time of creation of binlog event.
         
      For both table types the combination of raised error and KILLED flag indicates that there
      was potentially partial execution on master and consistency is under the question.
      In that case the code continues to binlog an event with an appropriate killed error.
       
      The fix relies on the specified behaviour of stored routine that must propagate the error 
      to the top level query handling if the thd->killed flag was raised in the routine execution.
         
      The patch adds an arg with the default killed-status-unset value to Query_log_event::Query_log_event.
      
      
      sql/log_event.cc:
        killed_status as the value of thd->killed can be passed as an arg to the constructor.
        if the value is different from the default the arg is set to the current thd->killed value.
        A caller might need to masquerade thd->killed with THD::NOT_KILLED.
        So far only mysql_insert() uses such explicit way to tell the constructor about killing status.
      sql/log_event.h:
        default arg to the constructor with meaning of killed status of the query. 
        if the arg is not explicitly provided the status of thd->killed will be snapshot 
        inside of the constuctor, which is potentially incorrect (see bug#27571)
      sql/sql_class.h:
        extending killed_state with no-state member.
      sql/sql_insert.cc:
        ignore the KILLED flag incl KILL_BAD_DATA when the INSERT query event 
        is created without an `error';
      sql/sql_update.cc:
        Suggestion how to fix bug#27571 as comments.
      mysql-test/r/binlog_killed.result:
        new result file
      mysql-test/t/binlog_killed.test:
        regression tests also apply for bug27563, BUG#27565
      f27bf2b4
    • unknown's avatar
      Added missing result file · aae1ff67
      unknown authored
      
      mysql-test/r/rpl_critical_errors.result:
        Missing result file
      aae1ff67
    • unknown's avatar
      Merge mysql.com:/nfsdisk1/lars/MERGE/mysql-5.0-merge · cf2facb5
      unknown authored
      into  mysql.com:/nfsdisk1/lars/MERGE/mysql-5.1-merge
      
      
      mysql-test/mysql-test-run.pl:
        Auto merged
      mysql-test/t/disabled.def:
        Auto merged
      sql/sql_load.cc:
        Auto merged
      cf2facb5
    • unknown's avatar
      Merge mysql.com:/nfsdisk1/lars/bkroot/mysql-5.1-new-rpl · a5caa4da
      unknown authored
      into  mysql.com:/nfsdisk1/lars/MERGE/mysql-5.1-merge
      
      
      mysql-test/mysql-test-run.pl:
        Auto merged
      mysql-test/t/disabled.def:
        Auto merged
      mysql-test/t/rpl_row_mysqlbinlog.test:
        Auto merged
      sql/sql_load.cc:
        Auto merged
      BitKeeper/deleted/.del-.del-rpl_critical_errors.result:
        Delete: BitKeeper/deleted/.del-rpl_critical_errors.result
      a5caa4da
    • unknown's avatar
      Merge mysql.com:/nfsdisk1/lars/bkroot/mysql-5.0-rpl · 9f757559
      unknown authored
      into  mysql.com:/nfsdisk1/lars/MERGE/mysql-5.0-merge
      
      
      mysql-test/mysql-test-run.pl:
        Auto merged
      mysql-test/t/disabled.def:
        Auto merged
      sql/sql_load.cc:
        Auto merged
      9f757559
  5. 24 May, 2007 5 commits