1. 12 Jan, 2005 1 commit
    • unknown's avatar
      Impl4 of WL2278 - Dynamic port allocation of cluster nodes · 5615ff29
      unknown authored
      When a node restarts it starts over again with fetching the configuration
      -  It is not sure that it can use the "old dynamically allocated port number" again.
      -  It should however try to reuse the old one, if not possible it should
      allocate a new one. One has to be able to distinguish between portnumbers
      specified originally in the config, and ones that has been dynamically added
      (the latter may be changed if "busy", but the first cannot be changed).
      
      We use negative portnumbers for ports that are ok to change.
      
      
      ndb/include/mgmapi/mgmapi_debug.h:
        change prototype for:
        ndb_mgm_set_connection_int_parameter
        ndb_mgm_get_connection_int_parameter
        
        Accept/set an int instead of an unsigned
      ndb/include/transporter/TransporterRegistry.hpp:
        Use an int (signed) to represent a port number.
        
        Zero means dynamic (but unassigned)
        >0 means static (defined in configuration)
        <0 means dynamic (and should be converted to positive before use)
      ndb/src/common/mgmcommon/IPCConfig.cpp:
        Set up the Transporter with a port number of the correct sign.
      ndb/src/common/transporter/TransporterRegistry.cpp:
        start_clients_thread:
         - handle negative port numbers
        
        add_transporter_interface:
         - accept signed integer as port number
        
        start_service:
         - If port is dynamic (<0), try to bind to it.
        	if that fails (e.g. some other process has taken that port),
        	then get a new dynamic port number.
      ndb/src/mgmapi/mgmapi.cpp:
        Use a signed integer for value in:
        ndb_mgm_set_connection_int_parameter
        ndb_mgm_get_connection_int_parameter
        
        Cast to a Uint32 for storage/retrieval to/from Properties
      ndb/src/mgmsrv/MgmtSrvr.cpp:
        getConnectionDbParameter
         - return value as integer (signed)
         - cast as Uint32 for iter.get
      ndb/src/mgmsrv/MgmtSrvr.hpp:
        Update prototype of getConnectionDbParameter
        
        int value (not unsigned anymore)
      ndb/src/mgmsrv/Services.cpp:
        MgmApiSession::getConnectionParameter
         - value is now signed
      5615ff29
  2. 11 Jan, 2005 1 commit
    • unknown's avatar
      Report an error if connect_client fails. · d2e6def1
      unknown authored
      
      ndb/src/common/transporter/TransporterRegistry.cpp:
        Report an error if connect_client fails. This should never really happen,
        except if strange things are going on. Hit this case during development,
        probably good to report if it happens.
      d2e6def1
  3. 09 Jan, 2005 2 commits
    • unknown's avatar
      Incorporate Jonas Orland's suggestions. · c7341b2e
      unknown authored
      
      ndb/src/common/util/SocketServer.cpp:
        Check for errors from getsockname (and error display).
        
        use SOCKET_SIZE_TYPE (as discovered by configure) instead of socklen_t
      c7341b2e
    • unknown's avatar
      Finish WL2278 Impl 3 - Dynamic port allocation of cluster nodes. · 69da579a
      unknown authored
      
      ndb/include/util/SocketClient.hpp:
        Add SocketClient::set_port(unsigned short port)
        - Sets both m_port and m_servaddr.sin_port
      ndb/src/common/transporter/Transporter.hpp:
        Fix set_r_port to call m_socket_client->set_port(port) (if there's a socket client).
      ndb/src/common/transporter/TransporterRegistry.cpp:
        Handle non-TCP Transporter nodes correctly
      ndb/src/mgmsrv/main.cpp:
        Better document and error check connecting back to our own ndb_mgmd
      69da579a
  4. 07 Jan, 2005 2 commits
    • unknown's avatar
      Merge mysql.com:/home/stewart/Documents/MySQL/5.0/ndb · ccbadbc9
      unknown authored
      into mysql.com:/home/stewart/Documents/MySQL/5.0/ndb-dynamic-ports-impl3
      
      
      ccbadbc9
    • unknown's avatar
      Along the road to a working Impl3 of WL2278. · 5de74593
      unknown authored
      
      ndb/src/common/transporter/TransporterRegistry.cpp:
        Only try to get dynamic port number for TCP transporters.
      ndb/src/mgmapi/mgmapi.cpp:
        DBUG_RETURN in ndb_mgm_set_connection_int_parameter
        
        Unique negative error codes for ndb_mgm_get_connection_int_parameter
      ndb/src/mgmsrv/MgmtSrvr.cpp:
        add MgmtSrvr::set_connect_string(const char *str)
      ndb/src/mgmsrv/MgmtSrvr.hpp:
        Add:
        - prototype for set_connect_string
        - get_config_retriever
      ndb/src/mgmsrv/main.cpp:
        Fake a connect string and connect back to ourselves.
        
        This enables us to use mgmapi routines to get configuration information.
        i.e. ndb_mgm_get_connection_int_parameter for getting dynamic port numbers to connect to.
      5de74593
  5. 06 Jan, 2005 3 commits
  6. 05 Jan, 2005 5 commits
    • unknown's avatar
      ndbapi event code cleanup · 97682b76
      unknown authored
      + some more docs on event
      
      
      ndb/examples/ndbapi_event_example/ndbapi_event.cpp:
        ndbapi event code cleanup
      ndb/include/kernel/signaldata/CreateEvnt.hpp:
        ndbapi event code cleanup
      ndb/include/ndbapi/NdbDictionary.hpp:
        ndbapi event code cleanup
      ndb/src/ndbapi/NdbDictionaryImpl.cpp:
        ndbapi event code cleanup
      ndb/src/ndbapi/ndberror.c:
        ndbapi event code cleanup
      97682b76
    • unknown's avatar
      last go at enabling using const NdbDictionary didn't work · 41b5876e
      unknown authored
      + some docs update on events
      
      
      ndb/examples/ndbapi_simple_example/ndbapi_simple.cpp:
        updated example somewhat
      ndb/include/ndbapi/NdbDictionary.hpp:
        fixed some docs
      ndb/src/ndbapi/NdbDictionary.cpp:
        last go at enabling using const NdbDictionary didn't work
      ndb/tools/desc.cpp:
        last go at enabling using const NdbDictionary didn't work
      ndb/tools/listTables.cpp:
        last go at enabling using const NdbDictionary didn't work
      41b5876e
    • unknown's avatar
      changed to using NdbTransaction scoped enums · 3add897e
      unknown authored
      and removed usage of Ndb::waitUntilReady()
      
      
      3add897e
    • unknown's avatar
      ndb - getTable retry if DICT busy · ae736acf
      unknown authored
      
      ndb/src/ndbapi/NdbDictionaryImpl.cpp:
        getTable retry if DICT busy
      BitKeeper/etc/logging_ok:
        Logging to logging@openlogging.org accepted
      ae736acf
    • unknown's avatar
      moved AbortOption and ExecType inside NdbTransaction · 0e29e5e7
      unknown authored
      and provided some backwards compat functions
      
      
      0e29e5e7
  7. 04 Jan, 2005 13 commits
  8. 03 Jan, 2005 13 commits