1. 05 Apr, 2007 2 commits
  2. 04 Apr, 2007 3 commits
    • unknown's avatar
      Merge from 5.0 · 59a64c2b
      unknown authored
      
      mysql-test/r/ndb_trigger.result:
        Re-generated
      sql/mysql_priv.h:
        Merge
      sql/sql_insert.cc:
        Merge
      sql/sql_load.cc:
        Merge
      sql/sql_update.cc:
        Merge
      59a64c2b
    • unknown's avatar
      Merge mysql.com:/windows/Linux_space/MySQL/mysql-5.0 · 655a58d8
      unknown authored
      into  mysql.com:/windows/Linux_space/MySQL/mysql-5.1
      
      
      sql/ha_ndbcluster.h:
        Auto merged
      sql/sql_trigger.h:
        Auto merged
      mysql-test/r/ndb_trigger.result:
        Using local, will re-generate.
      include/my_base.h:
        Merge
      mysql-test/t/ndb_trigger.test:
        Merge
      sql/ha_ndbcluster.cc:
        Merge
      sql/mysql_priv.h:
        Merge
      sql/sql_delete.cc:
        Merge
      sql/sql_insert.cc:
        Merge
      sql/sql_load.cc:
        Merge
      sql/sql_update.cc:
        Merge
      655a58d8
    • unknown's avatar
      Bug #26242 UPDATE with subquery and triggers failing with cluster tables · 2efc0f51
      unknown authored
      In certain cases AFTER UPDATE/DELETE triggers on NDB tables that referenced
      subject table didn't see the results of operation which caused invocation
      of those triggers. In other words AFTER trigger invoked as result of update
      (or deletion) of particular row saw version of this row before update (or
      deletion).
      
      The problem occured because NDB handler in those cases postponed actual
      update/delete operations to be able to perform them later as one batch.
      
      This fix solves the problem by disabling this optimization for particular
      operation if subject table has AFTER trigger for this operation defined.
      To achieve this we introduce two new flags for handler::extra() method:
      HA_EXTRA_DELETE_CANNOT_BATCH and HA_EXTRA_UPDATE_CANNOT_BATCH.
      These are called if there exists AFTER DELETE/UPDATE triggers during a
      statement that potentially can generate calls to delete_row()/update_row().
      This includes multi_delete/multi_update statements as well as insert statements
      that do delete/update as part of an ON DUPLICATE statement.
      
      
      include/my_base.h:
        Added HA_EXTRA_DELETE_CANNOT_BATCH and HA_EXTRA_UPDATE_CANNOT_BATCH to inform handler when batching of delete/update is not possible.
      mysql-test/r/ndb_trigger.result:
        Bug #26242  UPDATE with subquery and triggers failing with cluster tables
        ---
        Added new test cases
      mysql-test/t/ndb_trigger.test:
        Bug #26242  UPDATE with subquery and triggers failing with cluster tables
        ---
        Added new test cases
      sql/ha_ndbcluster.cc:
        Bug #26242  UPDATE with subquery and triggers failing with cluster tables: Use HA_EXTRA_DELETE_CANNOT_BATCH and HA_EXTRA_UPDATE_CANNOT_BATCH to inform handler when batching of delete/update is not possible
      sql/ha_ndbcluster.h:
        Bug #26242  UPDATE with subquery and triggers failing with cluster tables: Added member variables for handling of HA_EXTRA_DELETE_CANNOT_BATCH and HA_EXTRA_UPDATE_CANNOT_BATCH to inform handler when batching of delete/update is not possible
      sql/mysql_priv.h:
        Added new method prepare_triggers_for_insert_stmt to check if batching of delete/update must be disallowed.
      sql/sql_delete.cc:
        Use HA_EXTRA_DELETE_CANNOT_BATCH to inform handler when batching of delete is not possible
      sql/sql_insert.cc:
        Added method prepare_triggers_for_insert_stmt to check if batching of delete/update must be dissallowed.
        Use HA_EXTRA_DELETE_CANNOT_BATCH and HA_EXTRA_UPDATE_CANNOT_BATCH to inform handler
         when batching of delete/update is not possible
      sql/sql_load.cc:
        Call prepare_triggers_for_insert_stmt to check if batching of delete/update must be dissallowed and
        mark fields used by triggers for the insert statement.
      sql/sql_trigger.h:
        Added has_triggers to support what particular triggers exist on a table.
      sql/sql_update.cc:
        Use HA_EXTRA_UPDATE_CANNOT_BATCH to inform handler when batching of update is not possible
      2efc0f51
  3. 12 Feb, 2007 1 commit
  4. 09 Feb, 2007 5 commits
  5. 08 Feb, 2007 1 commit
    • unknown's avatar
      updates caused by 5.1.16 · fc71108a
      unknown authored
      
      BitKeeper/etc/ignore:
        Added mysql-test/partitions.log mysql-test/rpl.log to the ignore list
      fc71108a
  6. 07 Feb, 2007 11 commits
  7. 06 Feb, 2007 12 commits
    • unknown's avatar
      Merge mysql.com:/windows/Linux_space/MySQL/mysql-5.1 · cef338ec
      unknown authored
      into  mysql.com:/windows/Linux_space/MySQL/mysql-5.1-new-ndb
      
      
      mysql-test/r/ndb_read_multi_range.result:
        Auto merged
      mysql-test/t/ndb_read_multi_range.test:
        Auto merged
      sql/ha_ndbcluster.cc:
        Auto merged
      sql/ha_ndbcluster.h:
        Auto merged
      storage/ndb/src/ndbapi/NdbScanOperation.cpp:
        Auto merged
      cef338ec
    • unknown's avatar
      Merge mysql.com:/windows/Linux_space/MySQL/mysql-5.0 · fd2c17db
      unknown authored
      into  mysql.com:/windows/Linux_space/MySQL/mysql-5.1
      
      
      mysql-test/r/ndb_read_multi_range.result:
        Auto merged
      mysql-test/t/ndb_read_multi_range.test:
        Auto merged
      sql/ha_ndbcluster.cc:
        Auto merged
      storage/ndb/include/ndbapi/NdbIndexScanOperation.hpp:
        Auto merged
      storage/ndb/src/ndbapi/NdbScanOperation.cpp:
        Auto merged
      storage/ndb/include/ndbapi/NdbScanOperation.hpp:
        SCCS merged
      fd2c17db
    • unknown's avatar
      Fix for bug#25821 Excessive partition pruning for multi-range index scan in... · ba8a684d
      unknown authored
      Fix for bug#25821  Excessive partition pruning for multi-range index scan in NDB API: don't set distribution key if multi_range
      
      
      
      ba8a684d
    • unknown's avatar
      Excluded wrongly merged changeset. · efc2771d
      unknown authored
      efc2771d
    • unknown's avatar
      Bug#26015 valgrind warning PollGuard::unlock_and_signal()/NdbCondition_Destroy · b2f415d3
      unknown authored
      - Add variable "ndbcluster_binlog_terminating" and use that to signal
      the cluster binlog thread it's time to shutdown. This allows
      exact control of when the thread shutdown, previous implementation 
      would start shutdown of the thread as soon as the mysqld started
      shutdown. Now we will shutdown cluster binlog thread 
      in 'ndbcluster_binlog_end'
      
      
      sql/ha_ndbcluster_binlog.cc:
        Make binlog thread shutdown controllable by using a separet variable
        to communicate the order to shutdown
      b2f415d3
    • unknown's avatar
      copy from test-extra-5.1 to main tree · ee5eb8bb
      unknown authored
      
      BitKeeper/etc/ignore:
        Added mysql-test/suite/funcs_1/r/innodb_views.warnings mysql-test/suite/funcs_1/r/memory_trig_03e.warnings mysql-test/suite/funcs_1/r/memory_views.warnings mysql-test/suite/funcs_1/r/myisam_trig_03e.warnings mysql-test/suite/funcs_1/r/myisam_views.warnings mysql-test/suite/funcs_1/r/ndb_trig_03e.warnings mysql-test/suite/funcs_1/r/ndb_views.warnings mysql-test/suite/partitions/r/diff mysql-test/suite/partitions/r/partition_bit_ndb.warnings mysql-test/suite/partitions/r/partition_special_innodb.warnings mysql-test/suite/partitions/r/partition_special_myisam.warnings storage/archive/archive_reader mysql-test/suite/funcs_1/r/innodb_trig_03e.warnings to the ignore list
      mysql-test/suite/funcs_2/include/check_charset.inc:
        inserted newline at the end of file.
      mysql-test/suite/objects/include/drop_all.inc:
        inserted newline at the end of file.
      mysql-test/suite/partitions/include/partition_key_32col.inc:
        inserted newline at the end of file.
      mysql-test/suite/rpl/data/rpl_mixed.dat:
        inserted newline at the end of file.
      mysql-test/suite/rpl/include/rpl_mixed_check_event.inc:
        inserted newline at the end of file.
      mysql-test/suite/rpl/include/rpl_mixed_check_select.inc:
        inserted newline at the end of file.
      mysql-test/suite/rpl/include/rpl_mixed_check_user.inc:
        inserted newline at the end of file.
      mysql-test/suite/rpl/include/rpl_mixed_check_view.inc:
        inserted newline at the end of file.
      ee5eb8bb
    • unknown's avatar
      Merge poseidon.mysql.com:/home/tomas/mysql-5.1-telco-cga · bc365a8b
      unknown authored
      into  poseidon.mysql.com:/home/tomas/mysql-5.1-new-ndb
      
      
      storage/ndb/src/ndbapi/NdbEventOperationImpl.cpp:
        Auto merged
      bc365a8b
    • unknown's avatar
    • unknown's avatar
      Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.1 · 95edb7dd
      unknown authored
      into  poseidon.mysql.com:/home/tomas/mysql-5.1-new-ndb
      
      
      sql/ha_ndbcluster.cc:
        Auto merged
      95edb7dd
    • unknown's avatar
      Merge poseidon.mysql.com:/home/tomas/mysql-5.1-telco-cga · b0570148
      unknown authored
      into  poseidon.mysql.com:/home/tomas/mysql-5.1-new-ndb
      
      
      sql/ha_ndbcluster_binlog.cc:
        Auto merged
      storage/ndb/src/ndbapi/TransporterFacade.cpp:
        Auto merged
      sql/ha_ndbcluster.cc:
        manual merge
      b0570148
    • unknown's avatar
      Bug #26021 - ndb: valgrind warning handle_trailing_share/ndbcluster_free_share invalid read · df3494ca
      unknown authored
      
      sql/ha_ndbcluster.cc:
        Bug #26021: make sure ndbcluster_create_event_ops even if no binlogging as flags NSF_NO_BINLOG is set there
        set NSS_DROPPED state in handle_trailing_share if appropriate
        added dbug printout and comments for NDB_SHARE references
      sql/ha_ndbcluster_binlog.cc:
        Bug #26021: set NSF_NO_BINLOG if !ndb_binlog_running
        Bug #26021: only reuse share if share_may_exist
        setup apply_status table to be logged always, even if no binlogging
        added dbug printout and comments for NDB_SHARE references
      df3494ca
    • unknown's avatar
      ndb: remove WAITFOR_RESPONSE_TIMEOUT printout · c0cc9468
      unknown authored
      - to get cleaner error log in debug mode
      
      
      storage/ndb/src/ndbapi/TransporterFacade.cpp:
        remove WAITFOR_RESPONSE_TIMEOUT printout
      c0cc9468
  8. 05 Feb, 2007 5 commits
    • unknown's avatar
      Merge joreland@bk-internal.mysql.com:/home/bk/mysql-5.1-new-ndb · 949381c2
      unknown authored
      into  perch.ndb.mysql.com:/home/jonas/src/mysql-5.1-new-ndb
      
      
      storage/ndb/src/kernel/blocks/qmgr/Qmgr.hpp:
        Auto merged
      storage/ndb/src/kernel/blocks/qmgr/QmgrMain.cpp:
        Auto merged
      949381c2
    • unknown's avatar
      ndb - some more hugo abort option fix · 3a8a328e
      unknown authored
      
      storage/ndb/test/src/HugoTransactions.cpp:
        restore some accidently removed hugo code
      storage/ndb/test/src/UtilTransactions.cpp:
        one more abort option fix
      3a8a328e
    • unknown's avatar
      ndb - · 598b8dfd
      unknown authored
      Add abort option to lots of Hugo code, 
      as it assumes it and default value has changed
      
      
      storage/ndb/test/src/HugoTransactions.cpp:
        Add abort option to lots of Hugo code, 
        as it assumes it and default value has changed
      storage/ndb/test/src/UtilTransactions.cpp:
        Add abort option to lots of Hugo code, 
        as it assumes it and default value has changed
      598b8dfd
    • unknown's avatar
      ndb - bug#25801 · 0a27a90a
      unknown authored
        - improve error message if starting wo/ enough REDO
        - decrease likelyhood of trying to start too early
      
      
      storage/ndb/include/mgmapi/ndbd_exit_codes.h:
        Add new error code (that maybe should have been there a looong time)
      storage/ndb/src/kernel/blocks/dbdih/DbdihMain.cpp:
        Add new check (during SR) for that sufficient REDO is present
          before continuing SR
      storage/ndb/src/kernel/blocks/qmgr/Qmgr.hpp:
        Add list of GCI's of nodes so that we can check for sufficient REDO during a SR
      storage/ndb/src/kernel/blocks/qmgr/QmgrMain.cpp:
        Add check for REDO during SR
          so that
        1) cluster is not trying to start too soon
        2) a better error message (than internal error) is provided if not enough REDO is present
      storage/ndb/src/kernel/error/ndbd_exit_codes.c:
        Add new error code (that maybe should have been there a looong time)
      0a27a90a
    • unknown's avatar
      Merge poseidon.mysql.com:/home/tomas/mysql-5.1-telco-cga · 72d99ac2
      unknown authored
      into  poseidon.mysql.com:/home/tomas/mysql-5.1-new-ndb
      
      
      sql/ha_ndbcluster_binlog.cc:
        Auto merged
      72d99ac2