Ignore:
Timestamp:
06/06/17 17:58:16 (7 years ago)
Author:
oabramkina
Message:

Two server levels: merging with trunk r1137.
There are bugs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_olga/src/context_client.cpp

    r1139 r1158  
    5252          ranksServerLeader.push_back(rankStart + i); 
    5353 
    54         ranksServerNotLeader.resize(0);      } 
     54        ranksServerNotLeader.resize(0); 
     55      } 
    5556      else 
    5657      { 
     
    125126     * Send the temporarily buffered event (if any). 
    126127     * 
    127      * \return true if a temporarily buffered event could be sent, false otherwise 
     128     * \return true if a temporarily buffered event could be sent, false otherwise  
    128129     */ 
    129130    bool CContextClient::sendTemporarilyBufferedEvent() 
     
    171172      } 
    172173    } 
    173  
    174174 
    175175    /*! 
     
    323323   } 
    324324 
    325    /*! 
    326     Get leading server in the group of connected server 
    327     \return ranks of leading servers 
    328     */ 
    329     const std::list<int>& CContextClient::getRanksServerNotLeader(void) const 
    330     { 
    331       return ranksServerNotLeader; 
    332     } 
    333  
    334     /*! 
    335     Check if client connects to leading server 
    336     \return connected(true), not connected (false) 
    337     */ 
    338     bool CContextClient::isServerNotLeader(void) const 
    339     { 
    340       return !ranksServerNotLeader.empty(); 
    341     } 
     325  /*! 
     326  Get leading server in the group of connected server 
     327  \return ranks of leading servers 
     328  */ 
     329  const std::list<int>& CContextClient::getRanksServerNotLeader(void) const 
     330  { 
     331    return ranksServerNotLeader; 
     332  } 
     333 
     334  /*! 
     335  Check if client connects to leading server 
     336  \return connected(true), not connected (false) 
     337  */ 
     338  bool CContextClient::isServerNotLeader(void) const 
     339  { 
     340    return !ranksServerNotLeader.empty(); 
     341  } 
    342342 
    343343  /*! 
Note: See TracChangeset for help on using the changeset viewer.