1. 19 May, 2006 2 commits
    • unknown's avatar
      ndb - · 56589afd
      unknown authored
        fix scan bugs introduced by acc modifications
        add more error testcases
      
      
      storage/ndb/src/kernel/blocks/dbacc/Dbacc.hpp:
        remove unused state
      storage/ndb/src/kernel/blocks/dbacc/DbaccMain.cpp:
        1) remove unused state
        2) Fix abort of running lock owner
        3) Fix abort of running op in parallell queue (especially scans)
      storage/ndb/src/kernel/blocks/dblqh/DblqhMain.cpp:
        remove some printouts
        add some jams
        fix so that close tupscan, can not acciently start acc scan in queue
          (NOTE limits #tupscans to 12 which is not really necessary...but the fix was easy)
      storage/ndb/src/kernel/blocks/dbtup/DbtupScan.cpp:
        Use abort of locks when closing/blocked
          as Dbacc gets annoyed when committing an op with state running
      storage/ndb/src/kernel/blocks/dbtux/DbtuxScan.cpp:
        Use abort of locks when closing/blocked
          as Dbacc gets annoyed when committing an op with state running
      storage/ndb/test/include/HugoOperations.hpp:
        new method
      storage/ndb/test/ndbapi/testBasic.cpp:
        add more test cases
      storage/ndb/test/ndbapi/testScan.cpp:
        add more testcases
      storage/ndb/test/run-test/daily-basic-tests.txt:
        add more testcases
      storage/ndb/test/src/HugoOperations.cpp:
        add more testcases
      56589afd
    • unknown's avatar
      ndb - · 8bfc2d9c
      unknown authored
        bug#19928 and bug#19929
        fix to critical bugs in tup scan
        that affected lcp,backup and opt. nr
      
      
      storage/ndb/src/kernel/blocks/dbtup/DbtupScan.cpp:
        1) dont let dirty read scan find uncommitted inserts
        2) force opt. nr scan to wait for locked rows
        3) when finding LCP keep record, use accOpPtr -1, so that it will not be committed towards ACC
      8bfc2d9c
  2. 18 May, 2006 2 commits
    • unknown's avatar
      ndb - bug#19293 and family · be0ab479
      unknown authored
        introduce acc per row logical mutex to fix difficult error handling cases
        
      
      
      storage/ndb/src/kernel/blocks/dbacc/Dbacc.hpp:
        1) Fix per row mutex so that only 1 op at a time is running on a row
        2) Change TUP_ALLOC/DEALLOC semantic, so that a new record will be allocated if LQ = { T1(DEL) - T2(INS) }
        3) Rewrite lock queus to be O(1) in all cases but a few abort cases where we scan parallell queue
        4) Impl. a validate_lock_queue/dump_lock_queue test framework
      storage/ndb/src/kernel/blocks/dbacc/DbaccInit.cpp:
        1) Fix per row mutex so that only 1 op at a time is running on a row
        2) Change TUP_ALLOC/DEALLOC semantic, so that a new record will be allocated if LQ = { T1(DEL) - T2(INS) }
        3) Rewrite lock queus to be O(1) in all cases but a few abort cases where we scan parallell queue
        4) Impl. a validate_lock_queue/dump_lock_queue test framework
      storage/ndb/src/kernel/blocks/dbacc/DbaccMain.cpp:
        1) Fix per row mutex so that only 1 op at a time is running on a row
        2) Change TUP_ALLOC/DEALLOC semantic, so that a new record will be allocated if LQ = { T1(DEL) - T2(INS) }
        3) Rewrite lock queus to be O(1) in all cases but a few abort cases where we scan parallell queue
        4) Impl. a validate_lock_queue/dump_lock_queue test framework
      storage/ndb/src/kernel/blocks/dblqh/Dblqh.hpp:
        1) impl. a new read key from operation record needed by acc
        2) expand TRACE_OP toolkit
        3) impl. ACCKEY_ORD as needed by ACC changes
      storage/ndb/src/kernel/blocks/dblqh/DblqhMain.cpp:
        1) impl. a new read key from operation record needed by acc
        2) expand TRACE_OP toolkit
        3) impl. ACCKEY_ORD as needed by ACC changes
      storage/ndb/src/kernel/blocks/dbtup/Dbtup.hpp:
        remove unused states/methods
      storage/ndb/src/kernel/blocks/dbtup/DbtupExecQuery.cpp:
        remove extremly tricky code that handles disk_insert_but_no_mem_insert
          that is no long needed with current acc changes
      storage/ndb/src/kernel/blocks/dbtup/DbtupGen.cpp:
        remove unused states/methods
      storage/ndb/test/ndbapi/testOperations.cpp:
        renable last 3 lock upgrade testcases since they now pass
      be0ab479
    • unknown's avatar
      ndb - · 7d6ee98f
      unknown authored
        fix crashing dump numbers
      
      
      storage/ndb/include/kernel/signaldata/DumpStateOrd.hpp:
        fix crashing dump numbers
      7d6ee98f
  3. 17 May, 2006 2 commits
    • unknown's avatar
      ndb - · 0185fae5
      unknown authored
        Add mutex surronding sessions, as ndb_mgmd now actively tries to go and "purge stale sessions"
      
      
      storage/ndb/include/util/SocketServer.hpp:
        Add mutex surronding sessions, as ndb_mgmd now actively tries to go and  "purge stale sessions"
      storage/ndb/src/common/util/SocketServer.cpp:
        Add mutex surronding sessions, as ndb_mgmd now actively tries to go and  "purge stale sessions"
      storage/ndb/src/mgmsrv/Services.cpp:
        Add mutex surronding sessions, as ndb_mgmd now actively tries to go and  "purge stale sessions"
      0185fae5
    • unknown's avatar
      ndb - · f2824f10
      unknown authored
        Fix recursive mutex lock in drop index (ndbapi programs only)
      
      
      storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp:
        Fix recursive mutex lock in drop index (ndbapi programs only)
      storage/ndb/src/ndbapi/NdbDictionaryImpl.hpp:
        Fix recursive mutex lock in drop index (ndbapi programs only)
      f2824f10
  4. 08 May, 2006 3 commits
  5. 07 May, 2006 2 commits
    • unknown's avatar
      ndb - dbacc - unused variables · e65c68fc
      unknown authored
      
      storage/ndb/src/kernel/blocks/dbacc/Dbacc.hpp:
        more unused variables
      storage/ndb/src/kernel/blocks/dbacc/DbaccMain.cpp:
        more unused variables
      e65c68fc
    • unknown's avatar
      ndb - dbacc - remove some unused variables · 133c2d7b
      unknown authored
      
      storage/ndb/src/kernel/blocks/dbacc/Dbacc.hpp:
        remove unused variables
      storage/ndb/src/kernel/blocks/dbacc/DbaccMain.cpp:
        remove unused variables
      133c2d7b
  6. 06 May, 2006 2 commits
  7. 05 May, 2006 8 commits
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.1-new · 8e8d8e8a
      unknown authored
      into  mysql.com:/home/my/mysql-5.1
      
      
      mysql-test/mysql-test-run.pl:
        Auto merged
      sql/ha_ndbcluster.cc:
        Auto merged
      8e8d8e8a
    • unknown's avatar
      Don't use row level logging on optimize or repair table. · 3995b06b
      unknown authored
      (Fixes core dump in rpl_failed_optimize.test)
      Ensure we end active transcations if we do an admin command (like optimize, repair etc)
      
      
      mysql-test/extra/rpl_tests/rpl_failed_optimize.test:
        Added extra test + drop of table at end of test
      mysql-test/lib/mtr_report.pl:
        Fail if mysqld asserts or prints stack
      mysql-test/mysql-test-run.sh:
        Fail if mysqld asserts or prints stack
      mysql-test/r/exampledb.result:
        Cleanup of events_tests (as this caused a lot of problems if it didn't work)
      mysql-test/r/innodb.result:
        Extra test to see that we can do an optimize table on an active transaction
      mysql-test/r/rpl_failed_optimize.result:
        Added extra test + drop of table at end of test
      mysql-test/t/exampledb.test:
        Cleanup of events_tests (as this caused a lot of problems if it didn't work)
      mysql-test/t/innodb.test:
        Extra test to see that we can do an optimize table on an active transaction
      sql/handler.cc:
        Don't use row level logging on optimize or repair table.
      sql/log.cc:
        Simplify code (no logic changes)
      sql/mysql_priv.h:
        Added prototype
      sql/sql_base.cc:
        Better name for define
      sql/sql_class.cc:
        Indentation fix
      sql/sql_parse.cc:
        Make end_active_trans() global
      sql/sql_table.cc:
        Ensure we end active transcations if we do an admin command (like optimize, repair etc)
      3995b06b
    • unknown's avatar
      Merge jmiller@bk-internal.mysql.com:/home/bk/mysql-5.1-new · dac68ff7
      unknown authored
      into  mysql.com:/home/ndbdev/jmiller/clones/mysql-5.1-new
      
      
      dac68ff7
    • unknown's avatar
      do not install ndb slave if no slaves · 2a6a3ad2
      unknown authored
          fixed memleak in ndbcluster_end
      
      
      mysql-test/mysql-test-run.pl:
        do not install ndb slave if no slaves
      sql/ha_ndbcluster.cc:
        fixed memleak in ndbcluster_end
      2a6a3ad2
    • unknown's avatar
      Fixed wrong merge · d1b6779a
      unknown authored
      d1b6779a
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.1-new · e44823ff
      unknown authored
      into  mysql.com:/home/my/mysql-5.1
      
      
      sql/ha_ndbcluster.cc:
        Auto merged
      mysql-test/t/disabled.def:
        Manual merge
      e44823ff
    • unknown's avatar
      Merge mysql.com:/home/mydev/mysql-5.1 · 286ee9aa
      unknown authored
      into  mysql.com:/home/mydev/mysql-5.1-bug10405
      
      
      286ee9aa
    • unknown's avatar
      After merge fix · 9535b127
      unknown authored
      9535b127
  8. 04 May, 2006 19 commits
    • unknown's avatar
      ndb: fix compile error · 2a655fcc
      unknown authored
      2a655fcc
    • unknown's avatar
      ndb: added missing ifdef · 63851b02
      unknown authored
      63851b02
    • unknown's avatar
      ndb disabled test case against verified bug · 1a9e9cb4
      unknown authored
      1a9e9cb4
    • unknown's avatar
    • unknown's avatar
      Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.1-new · 610cdde2
      unknown authored
      into  poseidon.ndb.mysql.com:/home/tomas/mysql-5.1-new-ndb
      
      
      610cdde2
    • unknown's avatar
      Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.1-new · a15ac506
      unknown authored
      into  poseidon.ndb.mysql.com:/home/tomas/mysql-5.1-new-ndb
      
      
      mysql-test/t/disabled.def:
        Auto merged
      sql/ha_ndbcluster.cc:
        Auto merged
      sql/ha_ndbcluster_binlog.cc:
        Auto merged
      support-files/mysql.spec.sh:
        Auto merged
      a15ac506
    • unknown's avatar
      After merge fix · 54849724
      unknown authored
      54849724
    • unknown's avatar
      Merge mysql.com:/home/my/mysql-5.0 · edfc33be
      unknown authored
      into  mysql.com:/home/my/mysql-5.1
      
      
      mysql-test/lib/mtr_report.pl:
        Auto merged
      mysql-test/mysql-test-run.sh:
        Auto merged
      mysql-test/r/subselect.result:
        Auto merged
      sql/mysql_priv.h:
        Auto merged
      sql/sql_select.cc:
        Auto merged
      sql/sql_test.cc:
        Auto merged
      sql/sql_view.cc:
        Auto merged
      sql/sql_lex.cc:
        manual merge
      edfc33be
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.1-new · 80d86948
      unknown authored
      into  mysql.com:/home/my/mysql-5.1
      
      
      sql/mysqld.cc:
        Auto merged
      80d86948
    • unknown's avatar
      Fixed wrong free in sql_view.cc · afe47152
      unknown authored
      mysql-test-run now fails in case of warnings
      
      
      mysql-test/lib/mtr_report.pl:
        Fail if find warnings
      mysql-test/mysql-test-run.sh:
        Fail if find warnings
      sql/sql_lex.cc:
        Initalize st_lex properly
      sql/sql_view.cc:
        Fixed problem with unaligned memory (wrong free)
      afe47152
    • unknown's avatar
      Merge jonas@perch:/home/jonas/src/51-work · 97d8da57
      unknown authored
      into  poseidon.ndb.mysql.com:/home/tomas/mysql-5.1-new-ndb
      
      
      97d8da57
    • unknown's avatar
      Bug#19536 · 8c909a80
      unknown authored
        "NDB replication fails when no explicit--binlog-format given"
        fix initialization, storage engine initialization must occur after
        logging type is configured
      
      
      sql/mysqld.cc:
        Bug#19536
          fix initialization, storage engine initialization must occur after
          logging type is configured
      8c909a80
    • unknown's avatar
      Fixed compiler warnings · 791a5d94
      unknown authored
      Move plugin declarations after system functions have been checked
      (Fixes problem with ndb_config failing becasue SHM is not declared)
      Fixed some memory leaks
      
      
      configure.in:
        Move plugin declarations after system functions have been checked
        (Fixes problem with ndb_config failing becasue SHM is not declared)
      mysql-test/t/disabled.def:
        Disabled ndb_load, as it is in 5.0
        (Fails randomly in binlog_close_connection())
      mysql-test/t/log_tables.test:
        Update error numbers
      mysql-test/t/ndb_config.test:
        Moved test depending on SHM to ndb_config2.test
      mysql-test/t/ndb_partition_error.test:
        Update error numbers
      sql/event_timed.cc:
        Removed not needed line
      sql/ha_berkeley.cc:
        Fixed compiler warning
      sql/ha_heap.cc:
        Fixed compiler warning
      sql/ha_innodb.cc:
        Fixed compiler warning
      sql/ha_myisam.cc:
        Fixed compiler warning
      sql/ha_myisammrg.cc:
        Fixed compiler warning
      sql/ha_ndbcluster.cc:
        Fixed compiler warning
      sql/ha_partition.cc:
        Fixed compiler warning
      sql/mysql_priv.h:
        After merge fix
      sql/mysqld.cc:
        Fixed memory leak in skip_grant.test
      sql/share/errmsg.txt:
        Removed wrong error messages
      sql/sql_lex.cc:
        More debugging
        Faster lex_end()
      sql/sql_partition.cc:
        Fixed memory leak
      sql/sql_view.cc:
        Fixed memory leak
      mysql-test/r/ndb_config2.result:
        New BitKeeper file ``mysql-test/r/ndb_config2.result''
      mysql-test/t/ndb_config2.test:
        New BitKeeper file ``mysql-test/t/ndb_config2.test''
      791a5d94
    • unknown's avatar
      ndb: now no difference in behaviour between row and statement based · fb9f0afa
      unknown authored
      
      mysql-test/r/ndb_alter_table3.result:
        Rename: mysql-test/r/ndb_alter_table_row.result -> mysql-test/r/ndb_alter_table3.result
      BitKeeper/deleted/.del-ndb_alter_table_stm.test~477011b3a3164cb3:
        Delete: mysql-test/t/ndb_alter_table_stm.test
      BitKeeper/deleted/.del-ndb_alter_table_stm.result~2aef3740f2ed685a:
        Delete: mysql-test/r/ndb_alter_table_stm.result
      fb9f0afa
    • unknown's avatar
      Merge perch.ndb.mysql.com:/home/jonas/src/51-work · 28ac9ba2
      unknown authored
      into  perch.ndb.mysql.com:/home/jonas/src/51-jonas
      
      
      28ac9ba2
    • unknown's avatar
      ndb dd - · 40bb7cde
      unknown authored
        fix buglet when nr-delete-op gets page fault
      
      
      storage/ndb/src/kernel/blocks/dblqh/DblqhMain.cpp:
        fix buglet when nr-delete-op gets page fault
      40bb7cde
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0 · 94964da3
      unknown authored
      into  mysql.com:/home/my/mysql-5.0
      
      
      94964da3
    • unknown's avatar
      Merge monty@192.168.0.9:/my/mysql-5.0 · 8f1ed0aa
      unknown authored
      into  mysql.com:/home/my/mysql-5.0
      
      
      8f1ed0aa
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0 · 897f6158
      unknown authored
      into  mysql.com:/home/my/mysql-5.0
      
      
      897f6158