An error occurred fetching the project authors.
  1. 26 Apr, 2006 1 commit
    • unknown's avatar
      Bug #18550 ndbd getting "node failure handling not complete..." after graceful restart · 6108803a
      unknown authored
      - addded more retries to wait for nodefailure to complete
      Bug #19039 multi node failure causes node failure handling not to complete
      - patch to avoid this scenario when the management server is used to perform the stop
      - wait for NF_COMPLETE_REP in management server before returning
      ndb: allocate nodeid
      - only retry on retryable error
      
      6108803a
  2. 25 Apr, 2006 1 commit
    • unknown's avatar
      BUG#19340 small leak in ndbd · 5257dded
      unknown authored
      small cleanup fixes in kernel/vm/Configuration
      
      
      ndb/src/kernel/vm/Configuration.cpp:
        clean up m_logLevel
        
        free the connectstring if we allocated one
      5257dded
  3. 06 Apr, 2006 1 commit
    • unknown's avatar
      ndb - wl1760/bug#18216 · 9a864f19
      unknown authored
        add two new start options that will decrease likelyhood of bug#18612
        push cntr-sp2 logic down into qmgr-sp1 to decrease likelyhood of bug#18612
      
      
      ndb/include/kernel/signaldata/CmRegSignalData.hpp:
        Expand CmRegReq with lots of stuff
      ndb/include/mgmapi/ndb_logevent.h:
        Add Start report during sp1
      ndb/src/common/debugger/EventLogger.cpp:
        Add Start report during sp1
      ndb/src/kernel/blocks/dbdih/DbdihInit.cpp:
        Init cntrref
      ndb/src/kernel/blocks/dbdih/DbdihMain.cpp:
        Fix small bugs related to partial initial start
      ndb/src/kernel/blocks/ndbcntr/NdbcntrMain.cpp:
        Remove timeouts as they are handled in QMGR nowadays
      ndb/src/kernel/blocks/qmgr/Qmgr.hpp:
        Push cntr sp2 logic down to QMGR to prevent the forming of multiple QMGR cluster
          that will lead to start problems (crashes...)
      ndb/src/kernel/blocks/qmgr/QmgrInit.cpp:
        Push cntr sp2 logic down to QMGR to prevent the forming of multiple QMGR cluster
          that will lead to start problems (crashes...)
      ndb/src/kernel/blocks/qmgr/QmgrMain.cpp:
        Push cntr sp2 logic down to QMGR to prevent the forming of multiple QMGR cluster
          that will lead to start problems (crashes...)
      ndb/src/kernel/vm/Configuration.cpp:
        Add new flags
          --initial-start
          --nowait-nodes
      9a864f19
  4. 07 Feb, 2006 1 commit
    • unknown's avatar
      ndb - add option ndbd --foreground for manual debugging · 6b09dc82
      unknown authored
      ndb/src/kernel/main.cpp:
        add option ndbd --foreground for manual debugging
      ndb/src/kernel/vm/Configuration.cpp:
        add option ndbd --foreground for manual debugging
      ndb/src/kernel/vm/Configuration.hpp:
        add option ndbd --foreground for manual debugging
      6b09dc82
  5. 16 Jan, 2006 1 commit
    • unknown's avatar
      BUG#12124 ndb_mgm -e "# stop" does not allow stopping ndb_mgmd processes on other systems · 0caca225
      unknown authored
      WL#2703 restart for ndb_mgmd
      
      Solving two problems with one stone.
      
      Allows the stopping and restarting of mgm nodes other than the one the mgmclient
      is connected to.
      
      
      ndb/include/mgmapi/mgmapi.h:
        Add the internal ndb_mgm_end_session command.
        
        This will unreserve the nodeid we have allocated synchronously.
        
        Otherwise we can't do a restart of a node really quickly as the nodeids are cleaned
        up after the connection to mgmd is closed.
      ndb/include/mgmcommon/ConfigRetriever.hpp:
        Allow configuration on if end_session is going to be called on object destruction.
        
        We need to set this to false for ndbd as we fork()
      ndb/src/common/mgmcommon/ConfigRetriever.cpp:
        When destroying ConfigRetreiver, ndb_mgm_end_session - i.e. deallocate the nodeid
      ndb/src/common/util/SocketServer.cpp:
        When destroying a SocketServer, close the server socket.
      ndb/src/kernel/main.cpp:
        don't purge allocated resources when cleaning up in parent process (nodeid)
      ndb/src/kernel/vm/Configuration.cpp:
        have option end_session to closeConfiguration
      ndb/src/kernel/vm/Configuration.hpp:
        have option end_session to closeConfiguration
      ndb/src/mgmapi/mgmapi.cpp:
        Implement ndb_mgm_end_session
      ndb/src/mgmclient/CommandInterpreter.cpp:
        Correct output of STOP as we can now stop mgmd as well as ndbd
      ndb/src/mgmsrv/MgmtSrvr.cpp:
        Add code into start for connecting to our own mgmd.
        
        Create sendStopMgmd() which does the same job as sendSTOP_REQ, but for ndb_mgmd
        
        Allow stopping of other ndb_mgmd processes by creating a connection to them
        and issuing the stop command
        
        When stopping all nodes, stop other ndb_mgmd processes as well.
        
        Remove set_connect_string. Replace with connect_to_self. This is a much better
        way of doing things.
      ndb/src/mgmsrv/MgmtSrvr.hpp:
        add connect_to_self and remove set_connect_string.
      ndb/src/mgmsrv/Services.cpp:
        Add endSession.
        
        - delete Allocated_resources for this connection
        - create new Allocated_resources for this connection
        
        conceivably you could keep the socket open across node restarts (and even
        possibly get a different node id). But I wouldn't try it and expect happiness.
      ndb/src/mgmsrv/Services.hpp:
        Add endSession
      ndb/src/mgmsrv/main.cpp:
        allow mgmd to be restarted.
        
        - add g_RestartServer flag
        - move connecting to our own mgmd into MgmtSrvr (where it belongs)
        - output correct Shutdown/Restart message on shutdown/restart
      0caca225
  6. 05 Oct, 2005 1 commit
    • unknown's avatar
      Bug #11749 No message slogan found for Signal 8 received. (need better message) · 2200dfd4
      unknown authored
      + revised error messages after feedback
      + revides classifications and status
      + removed all progError(..0..) to make sure all error invocations have an error code
      + added some new error codes to replace some generic usage of SYSTEM_ERROR
      + removed some unused codes
      
      
      configure.in:
        Bug #11749  	No message slogan found for Signal 8 received. (need better message)
      ndb/include/kernel/signaldata/SystemError.hpp:
        + removed some unused codes
      ndb/src/kernel/blocks/dbacc/Dbacc.hpp:
        + removed all progError(..0..) to make sure all error invocations have an error code
      ndb/src/kernel/main.cpp:
        Bug #11749  	No message slogan found for Signal 8 received. (need better message)
      2200dfd4
  7. 03 Oct, 2005 1 commit
    • unknown's avatar
      added structured ndbd exit codes · ec337c04
      unknown authored
      BitKeeper/deleted/.del-ErrorMessages.hpp~9ab815d55a13433a:
        Delete: ndb/src/kernel/error/ErrorMessages.hpp
      config/ac-macros/ha_ndbcluster.m4:
        add ndb mgmapi to ndbcluster_includes
      extra/perror.c:
        perror to print also ndbd exit codes
      ndb/include/Makefile.am:
        added new ndbd exit code include file to src distribution
      ndb/include/kernel/signaldata/EventReport.hpp:
        backported from 5.1, included node id in event report signal
      ndb/src/kernel/blocks/cmvmi/Cmvmi.cpp:
        backported from 5.1, included node id in event report signal
      ec337c04
  8. 01 Mar, 2005 1 commit
    • unknown's avatar
      Fixes from Tomas's review of 'use configuration mgm handle as a transporter'. · 8b873819
      unknown authored
      This should help with the  PURGE STALE SESSIONS problem.
      
      
      ndb/src/common/transporter/TransporterRegistry.cpp:
        No longer need to do funny connecting and port reporting in start_service as we
        convert the configuration mgm after we have bound to the ports we have to report.
        
        use a BaseString for constructing the connect string.
      ndb/src/kernel/main.cpp:
        Reuse the mgm handle used to fetch configuration as a transporter connection.
      ndb/src/kernel/vm/Configuration.cpp:
        m_mgmd_host is now a BaseString.
      ndb/src/kernel/vm/Configuration.hpp:
        use BaseString for m_mgmd_host
      8b873819
  9. 24 Feb, 2005 1 commit
    • unknown's avatar
      Fixes for: use initial mgm connection as transporter connection · 4e701a15
      unknown authored
      ndb/include/mgmapi/mgmapi.h:
        ndb_mgm_convert_to_transporter may destroy the handle, now takes a pointer.
      ndb/include/mgmcommon/ConfigRetriever.hpp:
        If outside code is going to manipulate the NdbMgmHandle, allow it to do it
        via a get_mgmHandlePtr() call
      ndb/include/transporter/TransporterRegistry.hpp:
        connect_client and connect_ndb_mgmd may destroy the handle, now they take a pointer.
      ndb/src/common/transporter/TransporterRegistry.cpp:
        When start_service is binding to ports, report back the port numbers.
        
        We need this here now, as we re-use the initial mgm connection as a transporter, which
        is connected *before* start_service has allocated the dynamic port numbers. So the creation
        of this early transporter cannot be used to send the dynamic ports to the mgmd.
        
        We connect to the mgm server (using the handle that will be used in the client_Connect thread)
        if needed. This is thread safe as start_service is only ever called once, before
        the client connect thread starts.
        
        connect_client,connect_ndb_mgmd may destroy the NdbMgmHandle. It now accepts a pointer to it.
      ndb/src/kernel/vm/Configuration.cpp:
        Copy the m_mgmd_host string from the config_retreiver as the NdbMgmHandle in the
        ConfigRetreiver will be destroyed later (along with the host string).
        
        globalTransporterRegistry.connect_client will destroy the mgm handle, use a pointer to the handle.
      ndb/src/kernel/vm/Configuration.hpp:
        allow the dynamic allocation of m_mgmd_host.
      ndb/src/mgmapi/mgmapi.cpp:
        accept a pointer for ndb_mgm_convert_to_transporter as we destroy the handle.
      4e701a15
  10. 23 Feb, 2005 1 commit
    • unknown's avatar
      Use the mgm connection used for fetching configuration as a transporter. · b2985fc5
      unknown authored
      ndb/include/mgmapi/mgmapi.h:
        Add mgmapi call: ndb_mgm_get_mgmd_nodeid()
        
        - returns the node id that the handle is connected to.
        - returns 0 on error.
      ndb/include/transporter/TransporterRegistry.hpp:
        Add TransporterRegistry::connect_client(NdbMgmHandle h)
         - uses a connected NdbMgmHandle to connect to the mgm server as a client.
         - sets up a transporter connection
         - used to transform the initial mgm connection (used for fetching configuration)
           into a transporter connection
        
        Added connect_ndb_mgmd(NdbMgmHandle h)
         - turn the supplied mgm connection into a transporter connection
         - return the socket
        
        Improve comments on connect_ndb_mgmd(SocketClient)
      ndb/src/common/transporter/Transporter.cpp:
        Add Transporter::connect_client(NDB_SOCKET_TYPE)
         - use an existing socket to make a transporter connection
      ndb/src/common/transporter/Transporter.hpp:
        Add connect_client(NDB_SOCKET_TYPE)
      ndb/src/common/transporter/TransporterRegistry.cpp:
        Add TransporterRegistry::connect_client(NdbMgmHandle)
         - use an existing mgm connection to connect a transporter
         - used to change the mgm connection used for fetching configuration into a transporter
        
        Add connect_ndb_mgmd(NdbMgmHandle)
         - use existing NdbMgmHandle
         - convert to transporter
         - return socket
      ndb/src/kernel/vm/Configuration.cpp:
        After fetching configuration, use the mgm connection as a transporter.
        Fail fatally if this fails.
      ndb/src/mgmapi/mgmapi.cpp:
        Add ndb_mgm_get_mgmd_nodeid(h)
         - returns the node id of the mgm server you're connected to.
      ndb/src/mgmsrv/Services.cpp:
        Add "get mgmd nodeid" mgmd call
        
        returns 'nodeid' - the node id of the mgm server your connected to
      ndb/src/mgmsrv/Services.hpp:
        add prototype for get_mgmd_nodeid
      b2985fc5
  11. 21 Feb, 2005 1 commit
  12. 16 Feb, 2005 1 commit
  13. 14 Feb, 2005 1 commit
    • unknown's avatar
      make sure that the "conections are up to date" when exiting from MgmtSrvr::transporter_connect() · 5523fc92
      unknown authored
          Make sure that the node itself is set in the m_connected_nodes when connected
      
      
      ndb/src/kernel/vm/Configuration.cpp:
        make sure we destroy the iterator before reusing the variable
      ndb/src/mgmsrv/MgmtSrvr.cpp:
        make sure that the "conections are up to date" when exiting from MgmtSrvr::transporter_connect()
      ndb/src/ndbapi/ClusterMgr.cpp:
        Make sure that the node itself is set in the m_connected_nodes when connected
      5523fc92
  14. 27 Jan, 2005 1 commit
    • unknown's avatar
      Bug#8167 signal usage clash between mysql server and ndb shared memory · c5925932
      unknown authored
          added shared memory config parameter, signum for use in signalling
          added global variable for holdign signum to be used for shared memory connection
          only fiddle with signals if it is set
          simplified common ndb client option handling
      
      
      ndb/include/Makefile.am:
        added common defaults file
      ndb/include/mgmapi/mgmapi_config_parameters.h:
        added shared memory config parameter, signum for use in signalling
      ndb/include/transporter/TransporterDefinitions.hpp:
        added shared memory config parameter, signum for use in signalling
      ndb/include/util/ndb_opts.h:
        simplified common ndb client option handling
      ndb/src/common/mgmcommon/IPCConfig.cpp:
        added shared memory config parameter, signum for use in signalling
      ndb/src/common/portlib/NdbThread.c:
        added global variable for holdign signum to be used for shared memory connection
        only block signals if shared memory is used
      ndb/src/common/transporter/SHM_Transporter.cpp:
        use signum in new global variable for shared memory signalling
      ndb/src/common/transporter/TransporterRegistry.cpp:
        use signum in new global variable for shared memory signalling
        only fiddle with signals if it is set
      ndb/src/cw/cpcd/main.cpp:
        ndb_opts not really used
      ndb/src/kernel/vm/Configuration.cpp:
        simplified common ndb client option handling
      ndb/src/mgmclient/main.cpp:
        simplified common ndb client option handling
      ndb/src/mgmsrv/ConfigInfo.cpp:
        added shared memory config parameter, signum for use in signalling
      ndb/src/mgmsrv/main.cpp:
        simplified common ndb client option handling
      ndb/tools/delete_all.cpp:
        simplified common ndb client option handling
      ndb/tools/desc.cpp:
        simplified common ndb client option handling
      ndb/tools/drop_index.cpp:
        simplified common ndb client option handling
      ndb/tools/drop_tab.cpp:
        simplified common ndb client option handling
      ndb/tools/listTables.cpp:
        simplified common ndb client option handling
      ndb/tools/restore/restore_main.cpp:
        simplified common ndb client option handling
      ndb/tools/select_all.cpp:
        simplified common ndb client option handling
      ndb/tools/select_count.cpp:
        simplified common ndb client option handling
      ndb/tools/waiter.cpp:
        simplified common ndb client option handling
      c5925932
  15. 13 Jan, 2005 1 commit
  16. 20 Dec, 2004 1 commit
    • unknown's avatar
      added config parameter Group on connection · 16a1551f
      unknown authored
          moved NdbWaiter, m_ndb_cluster_connection, to impl class
          moved node selection things to cluster connection
          moved all private things to impl class
          added opts for shared memory and node selection
          changed opts handling somewhat; introduced enum for options and common handling of option variables
          added checks for transporter support
          automatic addition of shared mem transporters
          moved wait_until_ready code to cluster connection
          added control of usage of new node selection method
      
      
      ndb/include/mgmapi/mgmapi_config_parameters.h:
        added config parameter Group on connection
      ndb/include/ndbapi/Ndb.hpp:
        moved NdbWaiter, m_ndb_cluster_connection, to impl class
        moved node selection things to cluster connection
      ndb/include/ndbapi/ndb_cluster_connection.hpp:
        moved all private things to impl class
      ndb/include/util/ndb_opts.h:
        added opts for shared memory and node selection
      ndb/src/kernel/vm/Configuration.cpp:
        changed opts handling somewhat; introduced enum for options and common handling of option variables
      ndb/src/mgmclient/main.cpp:
        changed opts handling somewhat; introduced enum for options and common handling of option variables
      ndb/src/mgmsrv/ConfigInfo.cpp:
        added checks for transporter support
        automatic addition of shared mem transporters
      ndb/src/mgmsrv/MgmtSrvr.cpp:
        in alloc node id first choose connection with specified hostname
      ndb/src/mgmsrv/main.cpp:
        changed opts handling somewhat; introduced enum for options and common handling of option variables
      ndb/src/ndbapi/DictCache.hpp:
        added include file
      ndb/src/ndbapi/Ndb.cpp:
        enabled using new node selection method
        moved wait_until_ready code to cluster connection
        moved node selection (hint) to cluster connection
        removed start transaction dgroup
      ndb/src/ndbapi/NdbDictionaryImpl.hpp:
        removed and added inclusde files
      ndb/src/ndbapi/NdbImpl.hpp:
        moved things from Ndb into Impl class
        moved waiter things to new file NdbWaiter.hpp
      ndb/src/ndbapi/NdbScanOperation.cpp:
        ndbwaiter is no in impl class
      ndb/src/ndbapi/Ndbif.cpp:
        ndbwaiter is no in impl class
      ndb/src/ndbapi/Ndbinit.cpp:
        moved some Ndb things into impl class
      ndb/src/ndbapi/TransporterFacade.hpp:
        changed friend declaration
      ndb/src/ndbapi/ndb_cluster_connection.cpp:
        moved node selection things to cluster connection
        moved things from cluster connection to cluster connection impl class
      ndb/test/ndbapi/testNdbApi.cpp:
        removed start transaction dgroup
      ndb/tools/delete_all.cpp:
        changed opts handling somewhat; introduced enum for options and common handling of option variables
      ndb/tools/desc.cpp:
        changed opts handling somewhat; introduced enum for options and common handling of option variables
      ndb/tools/drop_index.cpp:
        changed opts handling somewhat; introduced enum for options and common handling of option variables
      ndb/tools/drop_tab.cpp:
        changed opts handling somewhat; introduced enum for options and common handling of option variables
      ndb/tools/listTables.cpp:
        changed opts handling somewhat; introduced enum for options and common handling of option variables
      ndb/tools/restore/restore_main.cpp:
        changed opts handling somewhat; introduced enum for options and common handling of option variables
      ndb/tools/select_all.cpp:
        changed opts handling somewhat; introduced enum for options and common handling of option variables
      ndb/tools/select_count.cpp:
        changed opts handling somewhat; introduced enum for options and common handling of option variables
      ndb/tools/waiter.cpp:
        changed opts handling somewhat; introduced enum for options and common handling of option variables
      sql/ha_ndbcluster.cc:
        added control of usage of new node selection method
      sql/mysqld.cc:
        added control of usage of new node selection method
      16a1551f
  17. 13 Dec, 2004 1 commit
  18. 24 Nov, 2004 2 commits
  19. 22 Nov, 2004 1 commit
  20. 19 Nov, 2004 2 commits
    • unknown's avatar
      corrected some erroneous size calculations in tup · 28dc4909
      unknown authored
          fixed erroneous error message - set auto increment was done even if create table failed so real error message got lost behind "table not found"
          and simplified code a bit
      
      
      ndb/src/kernel/vm/Configuration.cpp:
        corrected some erroneous size calculations
      ndb/src/ndbapi/NdbDictionaryImpl.cpp:
        fixed erroneous error message - set auto increment was done even if create table failed so real error message got lost behind "table not found"
        and simplified code a bit
      28dc4909
    • unknown's avatar
      f34986bf
  21. 18 Nov, 2004 1 commit
    • unknown's avatar
      changed mysqladmin.c to mysqladmin.cc · 61cf4698
      unknown authored
          no need for dvlags to have DEFINE_CXA_PURE_VIRTUAL anymore
          aligned the parsing of connectstring, retries for connect, allocation of nodeid for all cluster nodes
          removed all dependencies of LocalConfig, except for mgmapi internals
          enabled multiple management servrs to fetch data configurations from eachother
      
      
      client/Makefile.am:
        changed mysqladmin.c to mysqladmin.cc
      client/mysqladmin.cc:
        changed mysqladmin.c to mysqladmin.cc
      configure.in:
        no need for dvlags to have DEFINE_CXA_PURE_VIRTUAL anymore
      ndb/include/mgmapi/mgmapi.h:
        aligned the parsing of connectstring, retries for connect, allocation of nodeid for all cluster nodes
        removed all dependencies of LocalConfig, except for mgmapi internals
      ndb/include/mgmcommon/ConfigRetriever.hpp:
        aligned the parsing of connectstring, retries for connect, allocation of nodeid for all cluster nodes
        removed all dependencies of LocalConfig, except for mgmapi internals
      ndb/include/ndbapi/ndb_cluster_connection.hpp:
        aligned the parsing of connectstring, retries for connect, allocation of nodeid for all cluster nodes
        removed all dependencies of LocalConfig, except for mgmapi internals
      ndb/src/common/mgmcommon/ConfigRetriever.cpp:
        aligned the parsing of connectstring, retries for connect, allocation of nodeid for all cluster nodes
        removed all dependencies of LocalConfig, except for mgmapi internals
      ndb/src/kernel/main.cpp:
        aligned the parsing of connectstring, retries for connect, allocation of nodeid for all cluster nodes
        removed all dependencies of LocalConfig, except for mgmapi internals
      ndb/src/kernel/vm/Configuration.cpp:
        aligned the parsing of connectstring, retries for connect, allocation of nodeid for all cluster nodes
        removed all dependencies of LocalConfig, except for mgmapi internals
        changed to config setting to always use noOfMetaTables to make sure we don't overflow arrays
      ndb/src/kernel/vm/Configuration.hpp:
        aligned the parsing of connectstring, retries for connect, allocation of nodeid for all cluster nodes
        removed all dependencies of LocalConfig, except for mgmapi internals
      ndb/src/mgmapi/LocalConfig.cpp:
        aligned the parsing of connectstring, retries for connect, allocation of nodeid for all cluster nodes
        removed all dependencies of LocalConfig, except for mgmapi internals
      ndb/src/mgmapi/LocalConfig.hpp:
        aligned the parsing of connectstring, retries for connect, allocation of nodeid for all cluster nodes
        removed all dependencies of LocalConfig, except for mgmapi internals
      ndb/src/mgmapi/mgmapi.cpp:
        aligned the parsing of connectstring, retries for connect, allocation of nodeid for all cluster nodes
        removed all dependencies of LocalConfig, except for mgmapi internals
      ndb/src/mgmclient/CommandInterpreter.cpp:
        aligned the parsing of connectstring, retries for connect, allocation of nodeid for all cluster nodes
        removed all dependencies of LocalConfig, except for mgmapi internals
      ndb/src/mgmclient/main.cpp:
        aligned the parsing of connectstring, retries for connect, allocation of nodeid for all cluster nodes
        removed all dependencies of LocalConfig, except for mgmapi internals
      ndb/src/mgmclient/ndb_mgmclient.hpp:
        aligned the parsing of connectstring, retries for connect, allocation of nodeid for all cluster nodes
        removed all dependencies of LocalConfig, except for mgmapi internals
      ndb/src/mgmclient/ndb_mgmclient.h:
        aligned the parsing of connectstring, retries for connect, allocation of nodeid for all cluster nodes
        removed all dependencies of LocalConfig, except for mgmapi internals
      ndb/src/mgmsrv/MgmtSrvr.cpp:
        aligned the parsing of connectstring, retries for connect, allocation of nodeid for all cluster nodes
        removed all dependencies of LocalConfig, except for mgmapi internals
        enabled multiple management servrs to fetch data configurations from eachother
      ndb/src/mgmsrv/MgmtSrvr.hpp:
        aligned the parsing of connectstring, retries for connect, allocation of nodeid for all cluster nodes
        removed all dependencies of LocalConfig, except for mgmapi internals
      ndb/src/mgmsrv/MgmtSrvrConfig.cpp:
        aligned the parsing of connectstring, retries for connect, allocation of nodeid for all cluster nodes
        removed all dependencies of LocalConfig, except for mgmapi internals
      ndb/src/mgmsrv/main.cpp:
        aligned the parsing of connectstring, retries for connect, allocation of nodeid for all cluster nodes
        removed all dependencies of LocalConfig, except for mgmapi internals
      ndb/src/ndbapi/ndb_cluster_connection.cpp:
        aligned the parsing of connectstring, retries for connect, allocation of nodeid for all cluster nodes
        removed all dependencies of LocalConfig, except for mgmapi internals
      ndb/tools/waiter.cpp:
        aligned the parsing of connectstring, retries for connect, allocation of nodeid for all cluster nodes
        removed all dependencies of LocalConfig, except for mgmapi internals
      61cf4698
  22. 15 Nov, 2004 1 commit
    • unknown's avatar
      wl1744 - ndb on windows · 0b65e3ee
      unknown authored
      ndb/config/win-lib.am:
        removed TLS stuff (which I don't know what it is)
      ndb/include/kernel/signaldata/UtilLock.hpp:
        Made stuff public
      ndb/include/ndb_global.h.in:
        better defines for strcasecmp
      ndb/src/common/transporter/Transporter.cpp:
        Use NDB_INVALID_SOCKET
      ndb/src/common/util/SocketClient.cpp:
        Use NDB_INVALID_SOCKET
      ndb/src/kernel/vm/Callback.hpp:
        Move callback into SimulatedBlock as it for some mysterious reason
          otherwise got sizeof()=0 on windows
      ndb/src/kernel/vm/Configuration.cpp:
        Removed extra (bug) semi-colon
      ndb/src/kernel/vm/Mutex.cpp:
        Move callback into SimulatedBlock as it for some mysterious reason
          otherwise got sizeof()=0 on windows
      ndb/src/kernel/vm/Mutex.hpp:
        Move callback into SimulatedBlock as it for some mysterious reason
          otherwise got sizeof()=0 on windows
      ndb/src/kernel/vm/SectionReader.cpp:
        Use correct struct-type
      ndb/src/kernel/vm/SectionReader.hpp:
        Use correct struct-type
      ndb/src/kernel/vm/SimulatedBlock.cpp:
        Move callback into SimulatedBlock as it for some mysterious reason
          otherwise got sizeof()=0 on windows
      ndb/src/kernel/vm/SimulatedBlock.hpp:
        Move callback into SimulatedBlock as it for some mysterious reason
          otherwise got sizeof()=0 on windows
      ndb/src/mgmclient/Makefile.am:
        Add mgm client to windoze
      ndb/test/src/Makefile.am:
        Fix lib
      0b65e3ee
  23. 10 Nov, 2004 1 commit
    • unknown's avatar
      wl1744 - nbd windoze port · 30cecf19
      unknown authored
      ndb/include/logger/SysLogHandler.hpp:
        win-port
      ndb/include/ndb_global.h:
        win-port
      ndb/include/portlib/PortDefs.h:
        win-port
      ndb/src/common/mgmcommon/NdbConfig.c:
        win-port
      ndb/src/kernel/blocks/cmvmi/Cmvmi.cpp:
        win-port
      ndb/src/kernel/blocks/dbdih/DbdihMain.cpp:
        win-port
      ndb/src/kernel/blocks/ndbfs/Ndbfs.cpp:
        win-port
      ndb/src/kernel/main.cpp:
        win-port
      ndb/src/kernel/vm/Configuration.cpp:
        win-port
      ndb/src/kernel/vm/Emulator.cpp:
        win-port
      ndb/src/mgmsrv/CommandInterpreter.cpp:
        win-port
      ndb/src/mgmsrv/main.cpp:
        win-port
      scripts/make_win_src_distribution.sh:
        win-port
      30cecf19
  24. 09 Nov, 2004 1 commit
    • unknown's avatar
      wl1744 - fix compiler problems · 68d3cad9
      unknown authored
      ndb/include/debugger/GrepError.hpp:
        prexif
      ndb/include/kernel/LogLevel.hpp:
        fix correct type prototype
      ndb/include/kernel/signaldata/FsCloseReq.hpp:
        remove usage of true
      ndb/include/mgmapi/mgmapi.h:
        use Uint64 instead of long long
      ndb/include/mgmcommon/IPCConfig.hpp:
        correct type
      ndb/include/portlib/NdbTCP.h:
        fix #elif
      ndb/include/transporter/TransporterRegistry.hpp:
        correct type
      ndb/include/util/Parser.hpp:
        correct type
        made stuff public as vc++ couldn't handle template friends
      ndb/include/util/SimpleProperties.hpp:
        correct type
      ndb/src/common/debugger/EventLogger.cpp:
        Prefix GrepError::Code as GrepError::GE_Code
      ndb/src/common/debugger/GrepError.cpp:
        Prefix GrepError::Code as GrepError::GE_Code
      ndb/src/common/debugger/signaldata/FsCloseReq.cpp:
        removed usage of true
      ndb/src/common/debugger/signaldata/FsReadWriteReq.cpp:
        removed usage of true
      ndb/src/common/logger/LogHandlerList.hpp:
        use ndb_global
      ndb/src/common/mgmcommon/ConfigRetriever.cpp:
        removed ConfigRetriever::get_config(file) from windows
      ndb/src/common/transporter/TransporterRegistry.cpp:
        interface is a reserved word in vc++
      ndb/src/kernel/blocks/grep/Grep.hpp:
        Prefix GrepError::Code as GrepError::GE_Code
      ndb/src/kernel/vm/Configuration.cpp:
        Use BaseString::snprintf
      ndb/src/kernel/vm/Configuration.hpp:
        correct type
      ndb/src/kernel/vm/SimplePropertiesSection.cpp:
        correct type
      ndb/src/mgmapi/mgmapi_configuration.cpp:
        use Uin6t4
      ndb/src/mgmapi/mgmapi_configuration.hpp:
        use Uin6t4
      ndb/src/mgmsrv/ConfigInfo.cpp:
        Prefix
      ndb/src/mgmsrv/ConfigInfo.hpp:
        prefix
      ndb/src/ndbapi/Ndb.cpp:
        removed usued include
      ndb/src/ndbapi/NdbImpl.hpp:
        prefix
      ndb/src/ndbapi/ObjectMap.hpp:
        Better typecast
      68d3cad9
  25. 01 Nov, 2004 1 commit
    • unknown's avatar
      aligned ndb versioning with mysql · 14a06932
      unknown authored
          changed define SNPRINTF_RETURN_ZERO to SNPRINTF_RETURN_TRUNC
          added define NDB_INIT
          removed getarg, strlcat, strlcpy
          aligned ndb version with mysql version
          cpcd: removed old way of reading config file and replaced with mysql load_defaults
          changed from using getarg to my_getopts
          use mysql my_progname
          moved getarg to test
      
      
      BitKeeper/deleted/.del-strlcat.c~250851f8f1ac1c2c:
        Delete: ndb/src/common/util/strlcat.c
      BitKeeper/deleted/.del-strlcpy.c~43266e312d11c47b:
        Delete: ndb/src/common/util/strlcpy.c
      ndb/test/include/getarg.h:
        Rename: ndb/include/util/getarg.h -> ndb/test/include/getarg.h
      configure.in:
        aligned ndb versioning with mysql
        changed define SNPRINTF_RETURN_ZERO to SNPRINTF_RETURN_TRUNC
      ndb/include/ndb_global.h:
        added define NDB_INIT
        removed strlcpy, strlcat
      ndb/src/common/editline/sysunix.c:
        removed usage of strlcat
      ndb/src/common/util/Makefile.am:
        removed getarg, strlcat, strlcpy
      ndb/src/common/util/basestring_vsnprintf.c:
        changed define from SNPRINTF_RETURN_ZERO to SNPRINTF_RETURN_TRUNC
      ndb/src/common/util/socket_io.cpp:
        removed usage of strlcat
      ndb/src/common/util/version.c:
        aligned ndb version with mysql version
      ndb/src/cw/cpcd/common.cpp:
        removed old way of reading config file and replaced with mysql load_defaults
      ndb/src/cw/cpcd/common.hpp:
        removed old way of reading config file and replaced with mysql load_defaults
      ndb/src/cw/cpcd/main.cpp:
        changed from usin getarg to my_opts
      ndb/src/kernel/blocks/backup/restore/main.cpp:
        changed from usin getarg to my_opts
      ndb/src/kernel/error/ErrorReporter.cpp:
        use mysql my_progname
      ndb/src/kernel/main.cpp:
        removed const in main declaration
      ndb/src/kernel/vm/Configuration.cpp:
        changed from usin getarg to my_opts
      ndb/src/kernel/vm/Configuration.hpp:
        removed const in main declaration
      ndb/src/mgmclient/main.cpp:
        changed from usin getarg to my_opts
      ndb/src/mgmsrv/main.cpp:
        changed from usin getarg to my_opts
      ndb/src/ndbapi/Ndb.cpp:
        fixed compiler warnings
      ndb/test/run-test/Makefile.am:
        moved getarg to test
      ndb/test/src/Makefile.am:
        moved getarg to test
      ndb/test/src/getarg.c:
        moved strlcat and strlcpy into getarg.c
      ndb/tools/delete_all.cpp:
        changed from usin getarg to my_opts
      ndb/tools/desc.cpp:
        changed from usin getarg to my_opts
      ndb/tools/drop_index.cpp:
        changed from usin getarg to my_opts
      ndb/tools/drop_tab.cpp:
        changed from usin getarg to my_opts
      ndb/tools/listTables.cpp:
        changed from usin getarg to my_opts
      ndb/tools/select_all.cpp:
        changed from usin getarg to my_opts
      ndb/tools/select_count.cpp:
        changed from usin getarg to my_opts
      ndb/tools/waiter.cpp:
        changed from usin getarg to my_opts
      14a06932
  26. 21 Oct, 2004 1 commit
  27. 07 Oct, 2004 1 commit
    • unknown's avatar
      Fix error message · 2d0a205f
      unknown authored
      ndb/src/kernel/vm/Configuration.cpp:
        Correct error message, it should indicate that it was not possible to connect to ndb_mgmd
      2d0a205f
  28. 27 Sep, 2004 1 commit
    • unknown's avatar
      removed init on ConfigRetriever · b370bad1
      unknown authored
          added some debug printouts
          some changes in ndbcluster_init to make start of mysqld first work
      
      
      ndb/include/mgmcommon/ConfigRetriever.hpp:
        removed init on ConfigRetriever
      ndb/src/common/mgmcommon/ConfigRetriever.cpp:
        removed init on ConfigRetriever
        added some debug printouts
      ndb/src/kernel/vm/Configuration.cpp:
        removed init on ConfigRetriever
      ndb/src/ndbapi/ndb_cluster_connection.cpp:
        removed init on ConfigRetriever
        added sleep in retry
      sql/ha_ndbcluster.cc:
        some changes in ndbcluster_init to make start of mysqld first work
      b370bad1
  29. 25 Sep, 2004 2 commits
    • unknown's avatar
      added printout for where configuration is fetched · 6a557d96
      unknown authored
      debug printouts
      
      
      mysql-test/ndb/ndbcluster.sh:
        .
      ndb/include/mgmcommon/ConfigRetriever.hpp:
        added printout for where configuration is fetched
      ndb/src/common/mgmcommon/ConfigRetriever.cpp:
        added printout for where configuration is fetched
      ndb/src/kernel/main.cpp:
        added printout for where configuration is fetched
      ndb/src/kernel/vm/Configuration.cpp:
        added printout for where configuration is fetched
      ndb/src/kernel/vm/Configuration.hpp:
        added printout for where configuration is fetched
      ndb/src/ndbapi/Ndb.cpp:
        debug printouts
      6a557d96
    • unknown's avatar
      moved LocalConfig out of config retriver · a73ad896
      unknown authored
      a73ad896
  30. 20 Sep, 2004 1 commit
    • unknown's avatar
      bug#5659 · 4e61c525
      unknown authored
      uninit variable
      
      
      ndb/src/kernel/vm/Configuration.cpp:
        init variable
      4e61c525
  31. 17 Sep, 2004 1 commit
    • unknown's avatar
      Moved event category match functionality into mgmapi · 06e00092
      unknown authored
      Removed grep introduced bogus mgm call
      
      
      BitKeeper/deleted/.del-LogLevel.cpp~314a6bada2df40a8:
        Delete: ndb/src/common/debugger/LogLevel.cpp
      ndb/include/debugger/EventLogger.hpp:
        Removed match functionality and put into mgmapi
      ndb/include/kernel/LogLevel.hpp:
        Update LogLevel
      ndb/include/mgmapi/mgmapi_config_parameters.h:
        fix parameter
      ndb/src/common/debugger/EventLogger.cpp:
        Removed match functionality and put into mgmapi
      ndb/src/common/debugger/Makefile.am:
        removed LogLevel.cpp
      ndb/src/cw/cpcd/APIService.cpp:
        compiler warning
      ndb/src/cw/cpcd/CPCD.cpp:
        compiler warning
      ndb/src/cw/cpcd/CPCD.hpp:
        compiler warning
      ndb/src/cw/cpcd/main.cpp:
        compiler warning
      ndb/src/kernel/blocks/cmvmi/Cmvmi.cpp:
        Changed name of config parameter
      ndb/src/kernel/vm/Configuration.cpp:
        Changed name of config parameter
      06e00092
  32. 15 Sep, 2004 2 commits
    • unknown's avatar
      delete unnecessary include my_sys.h · 4f5bbc54
      unknown authored
      4f5bbc54
    • unknown's avatar
      ndb_init() to all ndb programs · 3664c673
      unknown authored
      ndb/examples/ndbapi_async_example/ndbapi_async.cpp:
        ndb_init()
      ndb/examples/ndbapi_example1/ndbapi_example1.cpp:
        ndb_init()
      ndb/examples/ndbapi_example2/ndbapi_example2.cpp:
        ndb_init()
      ndb/examples/ndbapi_example3/ndbapi_example3.cpp:
        ndb_init()
      ndb/examples/ndbapi_example4/ndbapi_example4.cpp:
        ndb_init()
      ndb/examples/ndbapi_example5/ndbapi_example5.cpp:
        ndb_init()
      ndb/examples/ndbapi_scan_example/ndbapi_scan.cpp:
        ndb_init()
      ndb/examples/select_all/select_all.cpp:
        ndb_init()
      ndb/include/ndb_global.h:
        ndb_init()
      ndb/src/common/util/Makefile.am:
        ndb_init()
      ndb/src/kernel/blocks/backup/read.cpp:
        ndb_init()
      ndb/src/kernel/blocks/backup/restore/main.cpp:
        ndb_init()
      ndb/src/kernel/main.cpp:
        ndb_init()
      ndb/src/kernel/vm/Configuration.cpp:
        ndb_init()
      ndb/src/mgmclient/main.cpp:
        ndb_init()
      ndb/src/mgmsrv/main.cpp:
        ndb_init()
      ndb/src/mgmsrv/mkconfig/mkconfig.cpp:
        ndb_init()
      ndb/src/ndbapi/Ndbinit.cpp:
        ndb_init()
      ndb/test/ndbapi/acid.cpp:
        ndb_init()
      ndb/test/ndbapi/acid2.cpp:
        ndb_init()
      ndb/test/ndbapi/benchronja.cpp:
        ndb_init()
      ndb/test/ndbapi/bulk_copy.cpp:
        ndb_init()
      ndb/test/ndbapi/cdrserver.cpp:
        ndb_init()
      ndb/test/ndbapi/celloDb.cpp:
        ndb_init()
      ndb/test/ndbapi/create_all_tabs.cpp:
        ndb_init()
      ndb/test/ndbapi/create_tab.cpp:
        ndb_init()
      ndb/test/ndbapi/drop_all_tabs.cpp:
        ndb_init()
      ndb/test/ndbapi/flexAsynch.cpp:
        ndb_init()
      ndb/test/ndbapi/flexBench.cpp:
        ndb_init()
      ndb/test/ndbapi/flexHammer.cpp:
        ndb_init()
      ndb/test/ndbapi/flexScan.cpp:
        ndb_init()
      ndb/test/ndbapi/flexTT.cpp:
        ndb_init()
      ndb/test/ndbapi/flexTimedAsynch.cpp:
        ndb_init()
      ndb/test/ndbapi/flex_bench_mysql.cpp:
        ndb_init()
      ndb/test/ndbapi/index.cpp:
        ndb_init()
      ndb/test/ndbapi/index2.cpp:
        ndb_init()
      ndb/test/ndbapi/initronja.cpp:
        ndb_init()
      ndb/test/ndbapi/interpreterInTup.cpp:
        ndb_init()
      ndb/test/ndbapi/mainAsyncGenerator.cpp:
        ndb_init()
      ndb/test/ndbapi/msa.cpp:
        ndb_init()
      ndb/test/ndbapi/restarter.cpp:
        ndb_init()
      ndb/test/ndbapi/restarter2.cpp:
        ndb_init()
      ndb/test/ndbapi/restarts.cpp:
        ndb_init()
      ndb/test/ndbapi/size.cpp:
        ndb_init()
      ndb/test/ndbapi/slow_select.cpp:
        ndb_init()
      ndb/test/ndbapi/testBackup.cpp:
        ndb_init()
      ndb/test/ndbapi/testBasic.cpp:
        ndb_init()
      ndb/test/ndbapi/testBasicAsynch.cpp:
        ndb_init()
      ndb/test/ndbapi/testBlobs.cpp:
        ndb_init()
      ndb/test/ndbapi/testDataBuffers.cpp:
        ndb_init()
      ndb/test/ndbapi/testDeadlock.cpp:
        ndb_init()
      ndb/test/ndbapi/testDict.cpp:
        ndb_init()
      ndb/test/ndbapi/testGrep.cpp:
        ndb_init()
      ndb/test/ndbapi/testGrepVerify.cpp:
        ndb_init()
      ndb/test/ndbapi/testIndex.cpp:
        ndb_init()
      ndb/test/ndbapi/testInterpreter.cpp:
        ndb_init()
      ndb/test/ndbapi/testMgm.cpp:
        ndb_init()
      ndb/test/ndbapi/bank/bankCreator.cpp:
        ndb_init()
      ndb/test/ndbapi/bank/bankMakeGL.cpp:
        ndb_init()
      ndb/test/ndbapi/bank/bankSumAccounts.cpp:
        ndb_init()
      ndb/test/ndbapi/bank/bankTimer.cpp:
        ndb_init()
      ndb/test/ndbapi/bank/bankTransactionMaker.cpp:
        ndb_init()
      ndb/test/ndbapi/bank/bankValidateAllGLs.cpp:
        ndb_init()
      ndb/test/ndbapi/bank/testBank.cpp:
        ndb_init()
      ndb/test/ndbapi/testNdbApi.cpp:
        ndb_init()
      ndb/test/ndbapi/testNodeRestart.cpp:
        ndb_init()
      ndb/test/ndbapi/testOIBasic.cpp:
        ndb_init()
      ndb/test/ndbapi/testOperations.cpp:
        ndb_init()
      ndb/test/ndbapi/testOrderedIndex.cpp:
        ndb_init()
      ndb/test/ndbapi/testReadPerf.cpp:
        ndb_init()
      ndb/test/ndbapi/testRestartGci.cpp:
        ndb_init()
      ndb/test/ndbapi/testScan.cpp:
        ndb_init()
      ndb/test/ndbapi/testScanInterpreter.cpp:
        ndb_init()
      ndb/test/ndbapi/testScanPerf.cpp:
        ndb_init()
      ndb/test/ndbapi/testSystemRestart.cpp:
        ndb_init()
      ndb/test/ndbapi/testTimeout.cpp:
        ndb_init()
      ndb/test/ndbapi/testTransactions.cpp:
        ndb_init()
      ndb/test/ndbapi/test_event.cpp:
        ndb_init()
      ndb/test/run-test/main.cpp:
        ndb_init()
      ndb/test/src/NDBT_Test.cpp:
        ndb_init()
      ndb/test/tools/copy_tab.cpp:
        ndb_init()
      ndb/test/tools/cpcc.cpp:
        ndb_init()
      ndb/test/tools/create_index.cpp:
        ndb_init()
      ndb/test/tools/hugoCalculator.cpp:
        ndb_init()
      ndb/test/tools/hugoFill.cpp:
        ndb_init()
      ndb/test/tools/hugoLoad.cpp:
        ndb_init()
      ndb/test/tools/hugoLockRecords.cpp:
        ndb_init()
      ndb/test/tools/hugoPkDelete.cpp:
        ndb_init()
      ndb/test/tools/hugoPkRead.cpp:
        ndb_init()
      ndb/test/tools/hugoPkReadRecord.cpp:
        ndb_init()
      ndb/test/tools/hugoPkUpdate.cpp:
        ndb_init()
      ndb/test/tools/hugoScanRead.cpp:
        ndb_init()
      ndb/test/tools/hugoScanUpdate.cpp:
        ndb_init()
      ndb/test/tools/restart.cpp:
        ndb_init()
      ndb/test/tools/transproxy.cpp:
        ndb_init()
      ndb/test/tools/verify_index.cpp:
        ndb_init()
      ndb/tools/delete_all.cpp:
        ndb_init()
      ndb/tools/desc.cpp:
        ndb_init()
      ndb/tools/drop_index.cpp:
        ndb_init()
      ndb/tools/drop_tab.cpp:
        ndb_init()
      ndb/tools/listTables.cpp:
        ndb_init()
      ndb/tools/ndbsql.cpp:
        ndb_init()
      ndb/tools/select_all.cpp:
        ndb_init()
      ndb/tools/select_count.cpp:
        ndb_init()
      ndb/tools/waiter.cpp:
        ndb_init()
      3664c673
  33. 06 Sep, 2004 1 commit
    • unknown's avatar
      -d default on ndb_mgmd and ndbd · 4948bf48
      unknown authored
      -i depricated on ndbd
      fixed bug in shutdown command in ndb_mgm
      
      
      ndb/src/mgmsrv/main.cpp:
        added config.ini as default configuration file
        -d default on ndb_mgmd and ndbd
        -i depricated on ndbd
        fixed bug in shutdown command in ndb_mgm
      4948bf48
  34. 26 Aug, 2004 3 commits
    • unknown's avatar
      new parameter BackupDataDir · c0f90861
      unknown authored
      c0f90861
    • unknown's avatar
      Fixed wrong number of fragment records in DIH · eeb08802
      unknown authored
      Fixed bug in failed create table
      Fixed new test case for failed create table using new ERROR_INSERT
      
      
      ndb/src/kernel/blocks/ERROR_codes.txt:
        Added new error insert for test of failed create table
      ndb/src/kernel/blocks/dbdih/DbdihMain.cpp:
        Added new error insert for test of failed create table
        Fixed bug in handling failed create table
        Moved some constants to pc.hpp
      ndb/src/kernel/vm/Configuration.cpp:
        Added new error insert for test of failed create table
        Fixed bug in handling failed create table
        Moved some constants to pc.hpp
      ndb/src/kernel/vm/pc.hpp:
        Constants moved here from DIH
      ndb/test/ndbapi/testDict.cpp:
        New test case for failed create table
      eeb08802
    • unknown's avatar
      ndb cluster config fixes, se respective files · 99a371f6
      unknown authored
      mysql-test/ndb/ndb_config_2_node.ini:
        added new config parameter datadir
      ndb/include/mgmapi/mgmapi_config_parameters.h:
        added new config parameter datadir and backup data dir
      ndb/include/mgmcommon/ConfigRetriever.hpp:
        changed verify config so that it can be used by mgmt srvr
      ndb/include/mgmcommon/NdbConfig.h:
        added option to set path for ndb files
      ndb/src/common/mgmcommon/ConfigInfo.cpp:
        changed token names for DB, MGM and API
        added config parametsers for datadir and backup data dir
      ndb/src/common/mgmcommon/ConfigRetriever.cpp:
        changed verify config so that it can be used by mgmt srvr
      ndb/src/common/mgmcommon/InitConfigFileParser.cpp:
        no need anymore to make uppercase
      ndb/src/common/mgmcommon/NdbConfig.c:
        bugfix+
        added method to set datadir
      ndb/src/kernel/Makefile.am:
        added debug libs to ndbd
      ndb/src/kernel/vm/Configuration.cpp:
        added debug libs to ndbd
      ndb/src/mgmsrv/MgmtSrvr.cpp:
        added verify config to mgmt srvr
      ndb/src/mgmsrv/main.cpp:
        .
      99a371f6