1. 14 Jan, 2005 1 commit
    • unknown's avatar
      Distinguish between "real" ports and those that can be negative (dynamic). · f2e98ab5
      unknown authored
      (Suggested by Tomas Ulin as part of review for WL2278)
      
      
      ndb/include/transporter/TransporterRegistry.hpp:
        Differentiate signed port numbers from unsigned ones
      ndb/src/common/mgmcommon/IPCConfig.cpp:
        Explain the sign of server_port
      ndb/src/common/transporter/TransporterRegistry.cpp:
        Use s_port to indicate a signed port number.
      ndb/src/kernel/main.cpp:
        use m_s_service_port to indicate signed port number
      ndb/src/mgmsrv/MgmtSrvr.cpp:
        differentiate between signed and unsigned port numbers
      ndb/src/ndbapi/ndb_cluster_connection.cpp:
        use m_s_service_port to indicate signed port number
      f2e98ab5
  2. 12 Jan, 2005 3 commits
    • unknown's avatar
      Merge mysql.com:/home/stewart/Documents/MySQL/5.0/ndb-dynamic-ports-impl3 · 48f05d2f
      unknown authored
      into mysql.com:/home/stewart/Documents/MySQL/5.0/ndb-dynamic-ports-impl4
      
      
      ndb/src/common/transporter/TransporterRegistry.cpp:
        Auto merged
      ndb/src/mgmapi/mgmapi.cpp:
        Auto merged
      ndb/src/mgmsrv/MgmtSrvr.cpp:
        Auto merged
      ndb/src/mgmsrv/Services.cpp:
        Auto merged
      48f05d2f
    • 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
    • unknown's avatar
      Merge mysql.com:/home/stewart/Documents/MySQL/5.0/ndb · 61eec3db
      unknown authored
      into mysql.com:/home/stewart/Documents/MySQL/5.0/ndb-dynamic-ports-impl3
      
      
      ndb/src/common/transporter/TransporterRegistry.cpp:
        Auto merged
      ndb/src/mgmapi/mgmapi.cpp:
        Auto merged
      ndb/src/mgmsrv/ConfigInfo.cpp:
        Auto merged
      ndb/src/mgmsrv/MgmtSrvr.cpp:
        Auto merged
      ndb/src/mgmsrv/main.cpp:
        Auto merged
      61eec3db
  3. 11 Jan, 2005 34 commits
  4. 10 Jan, 2005 2 commits
    • unknown's avatar
      field.h, field.cc: · 57ff6dd0
      unknown authored
        Did some more split TABLE to TABLE and TABLE_SHARE
      
      
      sql/field.cc:
        Field 'db_low_byte_first' of 'struct st_table' is now in TABLE_SHARE sub struct 's'
      sql/field.h:
        Field 'db_low_byte_first' of 'struct st_table' is now in TABLE_SHARE sub struct 's'
      57ff6dd0
    • unknown's avatar
      Fix double-initalization of mutex in archive storage engine. (Bug #7762) · 4bb238a0
      unknown authored
      
      sql/examples/ha_archive.cc:
        Fix redundant initialization of share->mutex
        Fix error handling to always clean up correctly
        Fix a couple of warnings
      4bb238a0