1. 25 Sep, 2004 3 commits
    • unknown's avatar
      bug#5702 · 25a328c5
      unknown authored
      more bug fixes.
      
      
      ndb/src/kernel/blocks/dbdict/Dbdict.cpp:
        DropIndex -
        1) return Invalid version 
        2) Mark as IS_DROPPING so that 2 simulatainious threads can't drop it
      ndb/src/ndbapi/NdbDictionary.cpp:
        Changed listIndex from taking table name to taking table id
        (should be index version aswell)
      ndb/src/ndbapi/NdbDictionaryImpl.cpp:
        List indexes using id
        Fix log towards m_globalHash
      ndb/src/ndbapi/NdbDictionaryImpl.hpp:
        List indexes using tableid (indexid)
      25a328c5
    • unknown's avatar
      Init theSCAN_TABREQ · d21d2181
      unknown authored
      d21d2181
    • unknown's avatar
      Fix memory leak · e54196d7
      unknown authored
      
      BitKeeper/deleted/.del-NdbScanReceiver.hpp~5c295814a47e7bb4:
        Delete: ndb/src/ndbapi/NdbScanReceiver.hpp
      BitKeeper/deleted/.del-NdbScanReceiver.cpp~b8a7472e4a7c424f:
        Delete: ndb/src/ndbapi/NdbScanReceiver.cpp
      ndb/include/ndb_global.h:
        Added ndb_end (corresponding to ndb_init)
      ndb/src/common/util/ndb_init.c:
        Added ndb_end (corresponding to ndb_init)
      ndb/src/ndbapi/NdbScanOperation.cpp:
        Release SCAN_TABREQ and 
        make sure to call NdbOperation::release (that releases other stuff)
      ndb/src/ndbapi/Ndbinit.cpp:
        Reorder free-ing so that signal are release last
        (so that operations holding signals can release the first)
      e54196d7
  2. 24 Sep, 2004 8 commits
    • unknown's avatar
      fix for invalidating table if mismatch with frm · c76c3830
      unknown authored
          removed debug printout
          new test in alter table for dictionay update test with multiple connections
          added coice of setting MaxNoOfOrderedIndexes
          added option to run "--small-bench"
      
      
      mysql-test/mysql-test-run.sh:
        added option to run "--small-bench"
      mysql-test/ndb/ndb_config_2_node.ini:
        added coice of setting MaxNoOfOrderedIndexes
      mysql-test/ndb/ndbcluster.sh:
        added coice of setting MaxNoOfOrderedIndexes
      mysql-test/r/ndb_alter_table.result:
        new test in alter table for dictionay update test with multiple connections
      mysql-test/t/ndb_alter_table.test:
        new test in alter table for dictionay update test with multiple connections
      ndb/src/ndbapi/DictCache.cpp:
        removed debug printout
      sql/ha_ndbcluster.cc:
        fix for invalidating table if mismatch with frm
      c76c3830
    • unknown's avatar
      Merge tulin@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb · 28aba37b
      unknown authored
      into poseidon.ndb.mysql.com:/home/tomas/mysql-4.1-ndb-merge
      
      28aba37b
    • unknown's avatar
      Merge tulin@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb · ab5bcad7
      unknown authored
      into poseidon.ndb.mysql.com:/home/tomas/mysql-4.1-ndb-merge
      
      ab5bcad7
    • unknown's avatar
      Extra jam broken if · c1fc1bec
      unknown authored
      c1fc1bec
    • unknown's avatar
      Merge tulin@bk-internal.mysql.com:/home/bk/mysql-4.1 · bd3bddbf
      unknown authored
      into poseidon.ndb.mysql.com:/home/tomas/mysql-4.1-ndb-merge
      
      
      BitKeeper/etc/logging_ok:
        auto-union
      configure.in:
        Auto merged
      bd3bddbf
    • unknown's avatar
      Dbdict · e1de02da
      unknown authored
      - set table state in releaseTableObject
      - make handleTabInfoInit release object if parsing fails
      - make sure table is not accessed is parsing fails
      
      e1de02da
    • unknown's avatar
      bug, releaseTableObject called twice · caeb0407
      unknown authored
      bug, whole bucket removed if delete first element in bucket
      
      
      ndb/src/kernel/blocks/dbdict/Dbdict.cpp:
        bug, releaseTableObject called twice
      ndb/src/ndbapi/NdbLinHash.hpp:
        bug, whole bucket removed if delete first element in bucket
      caeb0407
    • unknown's avatar
      logging_ok: · 15ef828b
      unknown authored
        Logging to logging@openlogging.org accepted
      sql_show.cc, type_enum.test, type_enum.result:
        Bug #5628 German characters in field-defs will be '?' with some table definitions
      
      
      mysql-test/r/type_enum.result:
        Bug #5628 German characters in field-defs will be '?' with some table definitions
      mysql-test/t/type_enum.test:
        Bug #5628 German characters in field-defs will be '?' with some table definitions
      sql/sql_show.cc:
        Bug #5628 German characters in field-defs will be '?' with some table definitions
      BitKeeper/etc/logging_ok:
        Logging to logging@openlogging.org accepted
      15ef828b
  3. 23 Sep, 2004 9 commits
    • unknown's avatar
      0a8a5c62
    • unknown's avatar
      A fix and test case for bug#5688 "Upgraded 4.1.5 Server seg faults" · a99f6791
      unknown authored
      
      mysql-test/r/ps.result:
        Test results fixed: the test case for bug#5688 "Upgraded 4.1.5 Server 
        seg faults"
      mysql-test/t/ps.test:
        Test case for bug#5688 "Upgraded 4.1.5 Server seg faults"
      sql/item_cmpfunc.cc:
        A fix for bug#5688 "Upgraded 4.1.5 Server seg faults":
        fix just another place where we use wrong memory root for an Item
        in statement prepare.
        In addition, make the check for charsets in Item_bool_func2
        more generic (fixes the test case when we use LIKE to compare BLOBs
        with TEXT data).
      a99f6791
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.1 · 6cb4aca5
      unknown authored
      into mysql.com:/home/dlenev/src/mysql-4.1-memroot
      
      6cb4aca5
    • unknown's avatar
      Merge abotchkov@bk-internal.mysql.com:/home/bk/mysql-4.1 · 7057c939
      unknown authored
      into deer.(none):/home/hf/work/mysql-4.1.5371
      
      7057c939
    • unknown's avatar
      Fix for BUG#5705: "SET CHARATER_SET_SERVERetc will be lost if STOP SLAVE before following query": · 8df3fead
      unknown authored
      we do not increment rli->group_master_log_pos if we are just after a SET ONE_SHOT (it's not a standalone event)
      
      
      mysql-test/r/rpl_charset.result:
        testing interruption of slave SQL thread between SET CHARACTER_SET_SERVER... and the companion INSERT.
      mysql-test/t/rpl_charset.test:
        testing interruption of slave SQL thread between SET CHARACTER_SET_SERVER... and the companion INSERT.
      sql/log_event.cc:
        we do not increment rli->group_master_log_pos if we are just after a SET
        ONE_SHOT, because SET ONE_SHOT should not be separated from its following
        updating query.
      8df3fead
    • unknown's avatar
      Merge abotchkov@bk-internal.mysql.com:/home/bk/mysql-4.1 · 8cf9cabb
      unknown authored
      into deer.(none):/home/hf/work/mysql-4.1.5371
      
      8cf9cabb
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.1 · 972fc5e6
      unknown authored
      into mysql.com:/home/dlenev/src/mysql-4.1-memroot
      
      
      sql/sql_class.cc:
        Auto merged
      sql/sql_class.h:
        Auto merged
      972fc5e6
    • unknown's avatar
      Implementation of Monty's idea about clear_alloc_root() optimization and cleanup of work · cf9e30b8
      unknown authored
      with memory roots in THD/Statement/Item_arena.
      Added assertions preventing memory allocation on bzero'ed MEM_ROOT since it is worked by 
      pure luck and was very ineffective.
      
      
      include/my_sys.h:
        Reimplementation of Monty's optimization of clear_alloc_root().
        Now clear_alloc_root() can be used only for detaching memory associated with MEM_ROOT
        (e.g. to avoid its freeing). It can not be used for MEM_ROOT initialization any longer 
        (it was bad idea anyway since memory allocation on such MEM_ROOT was very ineffective 
        and worked by pure luck).
        Introduced ALLOC_ROOT_MIN_BLOCK_SIZE constant.
      mysys/my_alloc.c:
        Added description of init_alloc_root().
        Added assertions to alloc_root() and reset_root_defaults() so now they can only be used
        on previosly initialized MEM_ROOT. (It worked for bzeroed MEM_ROOT before but 
        by pure luck and very inefficiently). Calling free_root() on bzero'ed MEM_ROOT
        is still ok (we can't remove this easily because of static MEM_ROOTs).
        Also now using ALLOC_ROOT_MIN_BLOCK_SIZE constant inside these functions.
      sql/opt_range.cc:
        Fixed get_quick_select_for_ref() function to not use bzero'ed MEM_ROOT for allocation.
        Also QUICK_RANGEs created in this function should be created in memory root of QUICK_SELECT.
      sql/sql_class.cc:
        Implementation of Monty's idea about clear_alloc_root() optimization and cleanup of work 
        with memory roots in THD/Statement/Item_arena.
        Now we are always initing THD::transaction.mem_root and THD::mem_root in THD constructor 
        (without memory allocation and with minimal block size) and then later change their
        parameters in THD::init_for_queries() (this is partially because we can't allocate anything
        on bzero'ed memory roots anymore).
        Item_arena() constructor is now trivial and is used only then Item_arena is created as backup
        storage for other Item_arena (we use Item_arena(bool) now if it is part of Statement).
        Both trivial Item_arena constructor and destructor are now inline.
        Removed unneeded clear_alloc_root from Item_arena::restore_backup_item_arena().
      sql/sql_class.h:
        Both trivial Item_arena constructor and destructor are now inline.
        Commented various Item_arena constructors.
      cf9e30b8
    • unknown's avatar
      bug#5702 · 6f9f64c2
      unknown authored
      Check index version already in master
      to prevent "non-atmoic" failing drop index
      
      
      ndb/src/kernel/blocks/dbdict/Dbdict.cpp:
        Check index version already in master
        to prevent "non-atmoic" failing drop index
      6f9f64c2
  4. 22 Sep, 2004 7 commits
    • unknown's avatar
      debug printout · 14c91d26
      unknown authored
      14c91d26
    • unknown's avatar
      Additional fix for bug #5136 (Geometry object is corrupted when queried) · 57517f3a
      unknown authored
      CREATE TABLE t1 SELECT POINT(1,2); fixed
      
      
      mysql-test/r/gis.result:
        Appropriate test result
      mysql-test/t/gis.test:
        test case
      sql/item_geofunc.cc:
        Item_geometry_func::fix_lengths_and_dec implementation
        several fix_length_and_dec's not needed now
      sql/item_geofunc.h:
        Item_geometry_func class presented
      57517f3a
    • unknown's avatar
      Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb · 2fb0f4a8
      unknown authored
      into mysql.com:/home/jonas/src/mysql-4.1-ndb
      
      2fb0f4a8
    • unknown's avatar
      A fix and test case for Bug#5315 "mysql_change_user() doesn't free · 0d44f8d4
      unknown authored
      prepared statements."
      
      
      include/hash.h:
        New declaration for hash_reset() function. The old version was not used.
      libmysql/client_settings.h:
        Declaration for mysql_detach_stmt_list().
      libmysql/libmysql.c:
        Fix for bug#5315 "mysql_change_user() doesn't free prepared statements":
        add call to mysql_detach_stmt_list(prepared statements) to
        mysql_change_user(): all statements are freed by server, so client
        counterparts need to be marked as not usable.
      mysys/hash.c:
        Fix for bug#5315 "mysql_change_user() doesn't free prepared statements":
        implementation of hash_reset(), which frees all hash elements
        and prepares the hash for reuse.
      sql-common/client.c:
        Fix for bug#5315 "mysql_change_user() doesn't free prepared statements":
        implementation of mysql_detach_stmt_list(): zero connection pointer
        in given statement list, thus marking given statements as not usable.
      sql/sql_class.cc:
        Fix for bug#5315 "mysql_change_user() doesn't free prepared statements":
        reset prepared statements map in THD::change_user().
      sql/sql_class.h:
        Fix for bug#5315 "mysql_change_user() doesn't free prepared statements":
        implementation of Statement_map::reset().
        A little cleanup of ~Statement_map(): first empty names_hash, as st_hash
        has a free function, which will delete statements.
      tests/client_test.c:
        A test case for bug #5315 "mysql_change_user() doesn't free prepared
        statements".
      0d44f8d4
    • unknown's avatar
      Fix so that testBackup wait until start has finished before · ff0256ed
      unknown authored
      starting to restore
      
      ff0256ed
    • unknown's avatar
      testScan - ReadWithLocksAndInserts · c9b6ed18
      unknown authored
      testBasic LocksAndInserts
      
      
      ndb/test/src/HugoTransactions.cpp:
        Fix HugoTransaction::load so that transaction is closed and started if
        error is found
      c9b6ed18
    • unknown's avatar
      misspelled testcase name · 60c4a44a
      unknown authored
      60c4a44a
  5. 21 Sep, 2004 13 commits
    • unknown's avatar
      Merge tulin@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb · cad625a0
      unknown authored
      into poseidon.ndb.mysql.com:/home/tomas/mysql-4.1-ndb-merge
      
      cad625a0
    • unknown's avatar
      config parameter changed · d909ccb8
      unknown authored
      d909ccb8
    • unknown's avatar
      Merge lgrimmer@build.mysql.com:/home/bk/mysql-4.1 · daae7f4a
      unknown authored
      into mysql.com:/space/my/mysql-4.1
      
      daae7f4a
    • unknown's avatar
      Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb · fadec7ca
      unknown authored
      into mysql.com:/home/jonas/src/mysql-4.1-ndb
      
      fadec7ca
    • unknown's avatar
      Make operation list on fragment fifo so that uncommitted operations · 43bf7d08
      unknown authored
        are undo-logged in correct order
      
      Add bunch of testcases to autotest
      
      
      ndb/src/kernel/blocks/dbtup/Dbtup.hpp:
        Send fragrecord ptr to initOpConnection so that is does not
        have to look it up every time (if needed)
        
        Make operation list on fragment fifo so that uncommitted operations
          are undo-logged in correct order
      ndb/src/kernel/blocks/dbtup/DbtupAbort.cpp:
        Send fragptr to initOpConnection
      ndb/src/kernel/blocks/dbtup/DbtupCommit.cpp:
        dllist -> dlfifolist
      ndb/src/kernel/blocks/dbtup/DbtupExecQuery.cpp:
        dllist -> dlfifolist
      ndb/src/kernel/blocks/dbtup/DbtupGen.cpp:
        Make operation list on fragment fifo so that uncommitted operations
          are undo-logged in correct order
      ndb/src/kernel/blocks/ndbcntr/NdbcntrMain.cpp:
        Fix uninitialized variable c_start.m_startTime
          which made startPartial and startPartitioned fail
      ndb/test/ndbapi/testSystemRestart.cpp:
        Added testSystemRestart -n SR9 which
          demonstrates that two prepared operation on same
          records _used to_ be undo-logged in wrong order makeing
          system restart fail
      ndb/test/run-test/daily-devel-tests.txt:
        Add
        * testSystemRestart -n SR6
          Restart while some nodes have fs and other not
        * testSystemRestart -n SR7
          Restart in partition win
        * testSystemRestart -n SR8
          Restart in partition win, others starting during restart
        * testSystemRestart -n SR9
          Multiple ops on same record prepared before
      43bf7d08
    • unknown's avatar
      Merge · 9b20ba8e
      unknown authored
      
      BitKeeper/etc/logging_ok:
        auto-union
      sql/ha_ndbcluster.cc:
        SCCS merged
      9b20ba8e
    • unknown's avatar
      bug#5591 · 6d69d56e
      unknown authored
      6d69d56e
    • unknown's avatar
      Merge tulin@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb · c41e7303
      unknown authored
      into poseidon.ndb.mysql.com:/home/tomas/mysql-4.1-ndb-merge
      
      
      sql/ha_ndbcluster.cc:
        Auto merged
      c41e7303
    • unknown's avatar
      Merge baker@bk-internal.mysql.com:/home/bk/mysql-4.1 · 616ee34c
      unknown authored
      into private-client-ip-101.oz.net:/Users/brian/mysql/mysql-4.1
      
      
      BitKeeper/etc/logging_ok:
        Logging to logging@openlogging.org accepted
      616ee34c
    • unknown's avatar
      Merge mysql.com:/home/jonas/src/mysql-4.1 · e800f8b7
      unknown authored
      into mysql.com:/home/jonas/src/mysql-4.1-ndb
      
      e800f8b7
    • unknown's avatar
      bug#5617 · 0ab9b32d
      unknown authored
      allow blank lines in Ndb.cfg files
      
      0ab9b32d
    • unknown's avatar
      - Bumped up version number: 4.1.5 -> 4.1.6 (still keeping the "gamma" · e31116d0
      unknown authored
         label for now)
       - tagged ChangeSet 1.2015.1.10 as "mysql-4.1.5"
      
      
      configure.in:
         - Bumped up version number: 4.1.5 -> 4.1.6 (still keeping the "gamma"
           label for now)
      e31116d0
    • unknown's avatar
      Removed debug printout · f48a4f2b
      unknown authored
      f48a4f2b