1. 23 Dec, 2004 1 commit
    • unknown's avatar
      Impl 2 of WL2278 - Dynamic port allocation of cluster nodes. · 233a33da
      unknown authored
      In "client connect thread", let the client read the port to connect to using
      ndb_mgm_get_connection_int_parameter.
      
      The request for the port is resent on every connect attempt.
      
      
      ndb/include/mgmapi/mgmapi_debug.h:
        Make ndb_mgm_get_connection_int_parameter return a Uint32 value - this is what Properties etc use, so we'll be consistent.
      ndb/include/transporter/TransporterRegistry.hpp:
        Add NdbMgmHandle to constructor. This is used to get the port number
        to connect to from mgmd. Defaults to NULL, although things will go badly
        if you don't change this (by calling the new set_mgm_handle method) pretty
        quickly.
        
        Add set_mgm_handle(NdbMgmHandle) method.
         - sets the MgmHandle to use when requesting from mgmd what port to connect to a node on.
      ndb/src/common/transporter/Transporter.hpp:
        Make remote port not a const.
        Add method to set remote port - set_r_port(unsigned int)
        
        Make getLocalNodeId return localNodeId, not remoteNodeId.
      ndb/src/common/transporter/TransporterRegistry.cpp:
        TransporterRegistry::TransporterRegistry()
         - accept NdbMgmHandle parameter
         - set m_mgm_handle to this
        
        TransporterRegistry::start_clients_thread()
         - If we're connecting to a node, and the server_port (from the config) is <=0,
        	we request the port number to connect to from mgmd.
        
        (note: in testing, the <=0 check was commented out so the code was run.
        There is no harm in always running it, it's just an extra round-trip to mgmd
        that we may not need).
      ndb/src/kernel/main.cpp:
        Set the mgm_handle for globalTransporterRegistry soon after we have set up theConfig (which sets up the mgmHandle).
      ndb/src/mgmapi/mgmapi.cpp:
        - Remove dead #else on #if 1
        
        - Print an error message and warning if the parser returns NULL.
          this will no longer silently fail, it will give output with
          information to help the programmer find out where things went wrong.
          In normal operation, this codepath should never be hit.
        
        - fix handlers for 'get|set connection parameter' calls.
      ndb/src/mgmsrv/MgmtSrvr.cpp:
        - Create TransporterFacade with the mgmHandle.
        - Don't worry about the order of node1 and node2 in getConnectionDbParameter
        - use a proper DBUG_RETURN in getConnectionParameter
      ndb/src/mgmsrv/Services.cpp:
        - fix reply to 'get connection parameter'
        - optimise reply size.
      ndb/src/ndbapi/TransporterFacade.cpp:
        - create TransporterRegistry with m_mgm_handle
        - set m_mgm_handle in constructor
      ndb/src/ndbapi/TransporterFacade.hpp:
        Introduce m_mgm_handle member.
      ndb/src/ndbapi/ndb_cluster_connection.cpp:
        create TransporterFacade (with mgmHandle) after the ConfigRetriever has been created
      233a33da
  2. 20 Dec, 2004 3 commits
    • unknown's avatar
      Merge mysql.com:/home/stewart/Documents/MySQL/5.0/ndb-dynamic-port · 168e5719
      unknown authored
      into mysql.com:/home/stewart/Documents/MySQL/5.0/ndb-dynamic-ports-impl2
      
      
      ndb/src/mgmapi/mgmapi.cpp:
        Auto merged
      ndb/src/mgmsrv/MgmtSrvr.cpp:
        Auto merged
      ndb/src/mgmsrv/MgmtSrvr.hpp:
        Auto merged
      ndb/src/mgmsrv/Services.cpp:
        Auto merged
      ndb/src/mgmsrv/Services.hpp:
        Auto merged
      168e5719
    • unknown's avatar
      Part 1 of impl2 of WL2278 (Dynamic port allocation of cluster nodes). · 87c85d6f
      unknown authored
      Implementation of "get connection parameter" mgmd call for getting from mgmd what port to use for a connection between two nodes.
      
      (The actual use of this function is not yet implemented)
      
      
      ndb/include/mgmapi/mgmapi_debug.h:
        Add ndb_mgm_get_connection_int_parameter() prototype
      ndb/src/mgmapi/mgmapi.cpp:
        Add ndb_mgm_get_connection_int_parameter() implementation
      ndb/src/mgmsrv/MgmtSrvr.cpp:
        Add implementation of MgmtSrvr::getConnectionDbParameter()
      ndb/src/mgmsrv/MgmtSrvr.hpp:
        Add prototype for get_connectionDbParemeter
      ndb/src/mgmsrv/Services.cpp:
        Add "get connection parameter" mgmd command (for over the wire)
        
        add getConnectionParameter handler for it
      ndb/src/mgmsrv/Services.hpp:
        Add prototype for getConnectionParameter
      87c85d6f
    • unknown's avatar
      Merge 5.0-ndb into local, resolve conflicts · 7e5be0fe
      unknown authored
      
      ndb/src/kernel/main.cpp:
        Auto merged
      ndb/src/kernel/vm/Configuration.hpp:
        Auto merged
      ndb/src/mgmapi/mgmapi.cpp:
        Auto merged
      ndb/src/mgmsrv/MgmtSrvr.cpp:
        Auto merged
      ndb/src/mgmsrv/MgmtSrvr.hpp:
        Auto merged
      ndb/src/mgmsrv/Services.cpp:
        Auto merged
      ndb/src/mgmsrv/Services.hpp:
        Auto merged
      ndb/include/transporter/TransporterRegistry.hpp:
        Resolve merge conflict (change of parameter name)
      ndb/src/common/transporter/TransporterRegistry.cpp:
        Resolve merge conflict (change of parameter name)
      7e5be0fe
  3. 17 Dec, 2004 6 commits
    • unknown's avatar
      Merge joreland@bk-internal.mysql.com:/home/bk/mysql-5.0-ndb · 3863b25c
      unknown authored
      into mysql.com:/home/jonas/src/mysql-5.0-ndb
      
      
      3863b25c
    • unknown's avatar
      Merge mysql.com:/home/jonas/src/mysql-4.1-fix · 7099d8e6
      unknown authored
      into mysql.com:/home/jonas/src/mysql-5.0-ndb
      
      
      ndb/tools/restore/consumer_restore.cpp:
        Auto merged
      7099d8e6
    • unknown's avatar
      bug#7379 & bug#7346 - ndb_restore · b181f610
      unknown authored
      
      ndb/tools/restore/consumer_restore.cpp:
        1) Fix bug when blobs and multiple databases bug#7379
        2) Fix bug #7346
      ndb/tools/restore/consumer_restore.hpp:
        Moved tuple handle into callback object 
          instead of having separate array
        Declared m_transactions volatile
      b181f610
    • unknown's avatar
      ndb: wl-1893: range scanning backwards, ndb kernel · 3465e155
      unknown authored
      
      ndb/include/kernel/signaldata/AccScan.hpp:
        wl-1893: range scanning backwards, ndb kernel
      ndb/include/kernel/signaldata/ScanFrag.hpp:
        wl-1893: range scanning backwards, ndb kernel
      ndb/include/kernel/signaldata/ScanTab.hpp:
        wl-1893: range scanning backwards, ndb kernel
      ndb/include/ndbapi/NdbIndexScanOperation.hpp:
        wl-1893: range scanning backwards, ndb kernel
      ndb/include/ndbapi/NdbScanOperation.hpp:
        wl-1893: range scanning backwards, ndb kernel
      ndb/src/common/debugger/signaldata/ScanTab.cpp:
        wl-1893: range scanning backwards, ndb kernel
      ndb/src/kernel/blocks/dblqh/Dblqh.hpp:
        wl-1893: range scanning backwards, ndb kernel
      ndb/src/kernel/blocks/dblqh/DblqhMain.cpp:
        wl-1893: range scanning backwards, ndb kernel
      ndb/src/kernel/blocks/dbtc/DbtcMain.cpp:
        wl-1893: range scanning backwards, ndb kernel
      ndb/src/kernel/blocks/dbtux/Dbtux.hpp:
        wl-1893: range scanning backwards, ndb kernel
      ndb/src/kernel/blocks/dbtux/DbtuxCmp.cpp:
        wl-1893: range scanning backwards, ndb kernel
      ndb/src/kernel/blocks/dbtux/DbtuxDebug.cpp:
        wl-1893: range scanning backwards, ndb kernel
      ndb/src/kernel/blocks/dbtux/DbtuxNode.cpp:
        wl-1893: range scanning backwards, ndb kernel
      ndb/src/kernel/blocks/dbtux/DbtuxScan.cpp:
        wl-1893: range scanning backwards, ndb kernel
      ndb/src/kernel/blocks/dbtux/DbtuxSearch.cpp:
        wl-1893: range scanning backwards, ndb kernel
      ndb/src/kernel/blocks/dbtux/DbtuxTree.cpp:
        wl-1893: range scanning backwards, ndb kernel
      ndb/src/ndbapi/NdbScanOperation.cpp:
        wl-1893: range scanning backwards, ndb kernel
      ndb/tools/select_all.cpp:
        wl-1893: range scanning backwards, ndb kernel
      sql/ha_ndbcluster.cc:
        wl-1893: range scanning backwards, ndb kernel
      3465e155
    • unknown's avatar
      ndb: small fixes (error codes, debug stuff) · 755874c8
      unknown authored
      
      ndb/test/ndbapi/testDeadlock.cpp:
        for broken compilers
      sql/ha_ndbcluster.cc:
        Use DBUG_PRINT since DBUG_FILE cannot be filtered out
      ndb/src/ndbapi/NdbDictionaryImpl.cpp:
        missing DBUG_RETURN
      ndb/include/kernel/signaldata/TupFrag.hpp:
        fix some error codes
      ndb/include/kernel/signaldata/TuxMaint.hpp:
        fix some error codes
      ndb/include/ndbapi/NdbBlob.hpp:
        fix some error codes
      ndb/src/kernel/blocks/dbacc/DbaccMain.cpp:
        fix some error codes
      ndb/src/ndbapi/ndberror.c:
        fix some error codes
      755874c8
    • unknown's avatar
      Remove unneeded debug. · 9035f5cf
      unknown authored
      Improve indenting.
      
      
      9035f5cf
  4. 16 Dec, 2004 30 commits
    • unknown's avatar
      merge · ff51fe45
      unknown authored
      
      BitKeeper/etc/logging_ok:
        auto-union
      configure.in:
        Auto merged
      ndb/include/Makefile.am:
        Auto merged
      ndb/include/mgmapi/mgmapi.h:
        Auto merged
      ndb/include/ndbapi/NdbConnection.hpp:
        Auto merged
      ndb/include/ndbapi/NdbDictionary.hpp:
        Auto merged
      ndb/src/common/debugger/EventLogger.cpp:
        Auto merged
      ndb/src/common/logger/Logger.cpp:
        Auto merged
      ndb/src/common/mgmcommon/ConfigRetriever.cpp:
        Auto merged
      ndb/src/common/util/Makefile.am:
        Auto merged
      ndb/src/common/util/version.c:
        Auto merged
      ndb/src/kernel/blocks/dbacc/Makefile.am:
        Auto merged
      ndb/src/kernel/blocks/dbdict/Dbdict.cpp:
        Auto merged
      ndb/src/kernel/blocks/dbdict/Dbdict.hpp:
        Auto merged
      ndb/src/kernel/blocks/dbdih/Dbdih.hpp:
        Auto merged
      ndb/src/kernel/blocks/dbdih/DbdihMain.cpp:
        Auto merged
      ndb/src/kernel/main.cpp:
        Auto merged
      ndb/src/kernel/blocks/dbtc/DbtcMain.cpp:
        Auto merged
      ndb/src/kernel/vm/Configuration.cpp:
        Auto merged
      ndb/src/mgmapi/mgmapi.cpp:
        Auto merged
      ndb/src/mgmsrv/CommandInterpreter.cpp:
        Auto merged
      ndb/src/mgmsrv/InitConfigFileParser.cpp:
        Auto merged
      ndb/src/mgmsrv/MgmtSrvr.cpp:
        Auto merged
      ndb/src/mgmsrv/MgmtSrvr.hpp:
        Auto merged
      ndb/src/mgmsrv/Services.cpp:
        Auto merged
      ndb/src/mgmsrv/Services.hpp:
        Auto merged
      ndb/src/mgmsrv/main.cpp:
        Auto merged
      ndb/src/ndbapi/Makefile.am:
        Auto merged
      ndb/src/ndbapi/NdbBlob.cpp:
        Auto merged
      ndb/src/ndbapi/NdbConnection.cpp:
        Auto merged
      ndb/src/ndbapi/NdbDictionaryImpl.hpp:
        Auto merged
      ndb/src/ndbapi/ndberror.c:
        Auto merged
      ndb/test/ndbapi/Makefile.am:
        Auto merged
      ndb/test/tools/Makefile.am:
        Auto merged
      ndb/tools/Makefile.am:
        Auto merged
      scripts/make_win_src_distribution.sh:
        Auto merged
      ff51fe45
    • unknown's avatar
      Merge mysql.com:/home/jonas/src/mysql-5.0 · a9c0a0df
      unknown authored
      into mysql.com:/home/jonas/src/mysql-5.0-ndb
      
      
      BitKeeper/etc/logging_ok:
        auto-union
      server-tools/instance-manager/Makefile.am:
        Auto merged
      a9c0a0df
    • unknown's avatar
      Merge joreland@bk-internal.mysql.com:/home/bk/mysql-5.0 · 8e24d09a
      unknown authored
      into mysql.com:/home/jonas/src/mysql-5.0
      
      
      BitKeeper/etc/logging_ok:
        auto-union
      8e24d09a
    • unknown's avatar
      merge · 4935b27c
      unknown authored
      4935b27c
    • unknown's avatar
      merge · 80c1bddd
      unknown authored
      
      ndb/include/transporter/TransporterRegistry.hpp:
        Auto merged
      ndb/src/kernel/main.cpp:
        Auto merged
      80c1bddd
    • unknown's avatar
      wl2240 - fix handling of distribution key wrt unique indexes · 1fefa5b3
      unknown authored
      
      ndb/include/kernel/AttributeDescriptor.hpp:
        removed unused
      ndb/include/kernel/ndb_limits.h:
        removed unused
      ndb/src/kernel/blocks/dbdict/Dbdict.cpp:
        Differentiate between nullable columns and null fields
          TUP wants sum all other want #null cols
      ndb/src/kernel/blocks/dbdict/Dbdict.hpp:
        Differentiate between nullable columns and null fields
          TUP wants sum all other want #null cols
      ndb/src/kernel/blocks/dbtc/Dbtc.hpp:
        Handle distribution key and collation in same subroutine
      ndb/src/kernel/blocks/dbtc/DbtcMain.cpp:
        Handle distribution key and collation in same subroutine
      ndb/src/kernel/vm/VMSignal.hpp:
        Increase size of signal->theData to 32k
      ndb/test/ndbapi/testPartitioning.cpp:
        better usage
      1fefa5b3
    • unknown's avatar
      Merge anna@bk-internal.mysql.com:/home/bk/mysql-5.0 · f9b1e2de
      unknown authored
      into arthur.local:/my/mysql-5.0-clean
      
      
      f9b1e2de
    • unknown's avatar
      Removed incorrect messages; fixed serbian messages. · 2ae67b02
      unknown authored
      
      sql/share/errmsg.txt:
        Removed incorrect error messages; Fixed serbian messages.
      2ae67b02
    • unknown's avatar
      Fix for BUG#7266. · 8a8c2272
      unknown authored
      
      mysql-test/r/greedy_optimizer.result:
        Adjusted query costs accordingly.
      sql/sql_select.cc:
        Someone added this 0.001 cost factor to best_extension_by_limited_search(), but forgot to
        add it to the old version of the optimizer - find_best().
      8a8c2272
    • unknown's avatar
      Merge jlindstrom@bk-internal.mysql.com:/home/bk/mysql-5.0 · f0f0e628
      unknown authored
      into hundin.mysql.fi:/home/jan/new/mysql-5.0
      
      
      f0f0e628
    • unknown's avatar
      errmsg.txt: · c04ac3c5
      unknown authored
        My attempt N3
      
      
      sql/share/errmsg.txt:
        My attempt N3
      c04ac3c5
    • unknown's avatar
      Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-5.0 · b564fb78
      unknown authored
      into gw.mysql.r18.ru:/usr/home/ram/work/5.0.b6843
      
      
      b564fb78
    • unknown's avatar
    • unknown's avatar
      Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-5.0 · 08eb1638
      unknown authored
      into gw.mysql.r18.ru:/usr/home/ram/work/5.0.b6843
      
      
      08eb1638
    • unknown's avatar
      Merge sgluhov@bk-internal.mysql.com:/home/bk/mysql-5.0 · 8c5a5c32
      unknown authored
      into gluh.mysql.r18.ru:/home/gluh/MySQL/mysql-5.0.n
      
      
      8c5a5c32
    • unknown's avatar
      Merge sgluhov@bk-internal.mysql.com:/home/bk/mysql-5.0 · db849cf5
      unknown authored
      into gluh.mysql.r18.ru:/home/gluh/MySQL/mysql-5.0.n
      
      
      db849cf5
    • unknown's avatar
    • unknown's avatar
      A fix (Bug #6843: Wrong function name crashes MySQL if mysql.proc table is missi · f94cb2b9
      unknown authored
                  
      
      
      sql/sp.cc:
        A fix (Bug #6843: Wrong function name crashes MySQL if mysql.proc table is missi
        We test current_select (in case of error) in the my_message_sql().
      f94cb2b9
    • unknown's avatar
      Fix the following: · ae3ea5a9
      unknown authored
      ndb_mgm_set_int_parameter
      ndb_mgm_set_int64_parameter
      ndb_mgm_set_string_parameter
      
      
      ndb/src/mgmapi/mgmapi.cpp:
        Don't include a ': ' at the end of an args.put() name.
        
        It is likely that the following calls don't work before this checkin:
        ndb_mgm_set_int_parameter
        ndb_mgm_set_int64_parameter
        ndb_mgm_set_string_parameter
        
        luckily nobody was actually calling these.
      ae3ea5a9
    • unknown's avatar
      Merge mysql.com:/home/mydev/mysql-5.0 · 22ae0abb
      unknown authored
      into mysql.com:/home/mydev/mysql-5.0-wl2126
      
      
      22ae0abb
    • unknown's avatar
      Changed C++-ism into C in client_test.c. · 92022992
      unknown authored
      
      tests/client_test.c:
        Moved variable declaration to the beginning of the block.
        (It's a C file, not C++)
      92022992
    • unknown's avatar
      Merge mysql.com:/home/mydev/mysql-5.0 · 48e1cea3
      unknown authored
      into mysql.com:/home/mydev/mysql-5.0-wl2126
      
      
      48e1cea3
    • unknown's avatar
      Enlarged group item key_length by a varstring length field. · 9a2c0bd9
      unknown authored
      Group item fields are implemented as varstrings nowadays.
      Made init_connect.test robust against existing t1.
      
      
      mysql-test/r/init_connect.result:
        Made init_connect.test robust against existing t1.
      mysql-test/t/init_connect.test:
        Made init_connect.test robust against existing t1.
      sql/sql_select.cc:
        Enlarged group item key_length by a varstring length field.
        Group item fields are implemented as varstrings nowadays.
      9a2c0bd9
    • unknown's avatar
      wl2240 - ndb - more testing · 66f7bd24
      unknown authored
      
      ndb/test/ndbapi/testPartitioning.cpp:
        Update test partitioning to add primary keys (distribution keys)
          incase of either 
        - only 1 primary key
        - primary keys with charsets
      ndb/test/src/HugoCalculator.cpp:
        Fix so that Hugo can cope with pk's in the "end" of the table
      66f7bd24
    • unknown's avatar
      Portability fix in libmysql (FreeBSD) · eaec00b1
      unknown authored
      
      include/my_global.h:
        Define UINT_MAX8
      libmysql/libmysql.c:
        Replace defines for insteger limits with their custom MySQL versions.
      eaec00b1
    • unknown's avatar
      finish Impl 1 "report port" of WL2278 · 90b34155
      unknown authored
      Dynamic port allocation of cluster nodes:
      Impl 1 is reporting the port used back to the mgmd. No actual dynamic ports.
      
      
      ndb/src/common/mgmcommon/IPCConfig.cpp:
        pass correct node id to add_transporter_interface.
        
        remoteNodeId is what we want, and is what we're now passing
      ndb/src/mgmapi/mgmapi.cpp:
        Don't use a ': ' at the end of args.put calls.
      ndb/src/mgmsrv/Services.cpp:
        Fix indenting
      90b34155
    • unknown's avatar
      Added support for a CREATE TABLE...AUTO_INCREMENT = x in InnoDB. · d518f871
      unknown authored
      
      sql/ha_innodb.cc:
        Added support for a CREATE TABLE...AUTO_INCREMENT = x; Note that the new
        value for auto increment field is set if the new values is creater than
        the maximum value in the column.
      d518f871
    • unknown's avatar
      Add DBUG_PRINT to ndb_mgm_call when we encounter arguments (Properties) that... · 82b5701b
      unknown authored
      Add DBUG_PRINT to ndb_mgm_call when we encounter arguments (Properties) that we are going to ignore (not send to mgmd).
      
      
      ndb/src/mgmapi/mgmapi.cpp:
        Add DBUG_PRINT to ndb_mgm_call when we encounter arguments (Properties)
        that we are going to ignore.
        
        Useful in debugging additions to mgmapi.
      82b5701b
    • unknown's avatar
      Merge mysql.com:/home/stewart/Documents/MySQL/5.0/ndb · dbb4671b
      unknown authored
      into mysql.com:/home/stewart/Documents/MySQL/5.0/ndb-dynamic-port
      
      
      dbb4671b
    • unknown's avatar
      Merge mysql.com:/home/stewart/Documents/MySQL/5.0/ndb · 007c9e29
      unknown authored
      into mysql.com:/home/stewart/Documents/MySQL/5.0/ndb-dynamic-port
      
      
      ndb/include/transporter/TransporterRegistry.hpp:
        Auto merged
      ndb/src/common/transporter/TransporterRegistry.cpp:
        Auto merged
      ndb/src/kernel/main.cpp:
        Auto merged
      007c9e29