• unknown's avatar
    BUG#11595 ndb_mgm shows from IP for second mgmd · 589a3f60
    unknown authored
    BUG#12037 ndb_mgmd IP address do not show in other ndb_mgmd processes
    
    Extend ApiVersionConf to include address.
    
    
    ndb/include/kernel/signaldata/ApiVersion.hpp:
      Extend ApiVersionConf to include inet_addr. the address used for communication to this node.
    ndb/src/kernel/blocks/qmgr/QmgrMain.cpp:
      include connect address in ApiVersionConf
    ndb/src/mgmsrv/MgmtSrvr.cpp:
      ::status() now also returns char* address of the node.
      For API or MGM, this is in ApiVersionConf.
      For NDB, this is the standard get_connect_address.
      
      When sending ApiVersionReq, try to send to a STARTED node (as these have
      properly joined the cluster and know the connect addresses).
      
      If versionNode is called for getOwnNodeId()==nodeId, try to get the address
      via ApiVersionConf. If that fails, look it up in the configuration.
    ndb/src/mgmsrv/MgmtSrvr.hpp:
      Add char **address to prototypes.
    ndb/src/mgmsrv/Services.cpp:
      Get the connect address from mgmsrv.status()
    589a3f60
Services.cpp 37.8 KB