Github user narendragoyal commented on a diff in the pull request:

    https://github.com/apache/trafodion/pull/1457#discussion_r171353312
  
    --- Diff: core/sqf/src/trafconf/clusterconf.cpp ---
    @@ -373,6 +376,13 @@ bool CClusterConfig::LoadNodeConfig( void )
         for (int i =0; i < nodeCount; i++ )
         {
             ProcessLNode( nodeConfigData[i], pnodeConfigInfo, lnodeConfigInfo 
);
    +        // We want to pick the first configured node so all monitors pick 
the same one
    +        // This only comes into play for a Trafodion start from scratch
    +        if (i == 0)
    +        {
    +            configMaster_ = pnodeConfigInfo.pnid;
    +            strcpy (configMasterName_ ,pnodeConfigInfo.nodename);
    --- End diff --
    
    if necessary, could limit the copy to the length of the destination


---

Reply via email to