Changeset 725


Ignore:
Timestamp:
10/09/15 11:14:56 (6 years ago)
Author:
rlacroix
Message:

Fix r724: Correctly notify the server about the size of the new buffer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/context_client.cpp

    r724 r725  
    132132      } 
    133133 
    134       CBufferOut* bufOut(NULL); 
    135       itE = buffers.end(); 
    136       for (it = buffers.begin(); it != itE; ++it) 
    137       { 
    138         bufOut = (it->second)->getBuffer(sizeof(StdSize)); 
    139         bufOut->put(mapBufferSize_[it->first]);  // Stupid C++ 
    140         (it->second)->checkBuffer(); 
    141       } 
    142  
    143134      if (isAttachedModeEnabled()) 
    144135      { 
     
    230221        mapBufferSize_[rank] = CXios::minBufferSize; 
    231222      } 
    232       buffers[rank] = new CClientBuffer(interComm, rank, mapBufferSize_[rank]); 
     223      CClientBuffer* buffer = buffers[rank] = new CClientBuffer(interComm, rank, mapBufferSize_[rank]); 
     224      // Notify the server 
     225      CBufferOut* bufOut = buffer->getBuffer(sizeof(StdSize)); 
     226      bufOut->put(mapBufferSize_[rank]); // Stupid C++ 
     227      buffer->checkBuffer(); 
    233228   } 
    234229 
Note: See TracChangeset for help on using the changeset viewer.