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

    https://github.com/apache/incubator-trafodion/pull/385#discussion_r56398777
  
    --- Diff: core/sqf/monitor/linux/pnode.cxx ---
    @@ -1528,6 +1528,14 @@ void CNodeContainer::AddNodes( )
         int pnid;
         int rank;
         int *sparePNids = NULL;
    +    
    +    //  only relevant on a workstation acting as a single node
    +    const char* envVar = getenv("SQ_MAX_RANK"); 
    +    int maxNode;
    +    if (envVar != NULL)
    +      maxNode = atoi (envVar);
    --- End diff --
    
    Again, I suppose SQ_MAX_RANK is a debugging tool, so we don't bother 
checking for non-numeric inputs such as might happen with "export 
SQ_MAX_RANK=ON" (where atoi would return 0 I think).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to