Ignore:
Timestamp:
02/17/17 19:51:36 (7 years ago)
Author:
oabramkina
Message:

dev: intermediate commit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_olga/src/node/file.cpp

    r1025 r1054  
    270270    void CFile::checkFile(void) 
    271271    { 
    272       if (mode.isEmpty() || mode.getValue() == mode_attr::write) 
     272      CContext* context = CContext::getCurrent(); 
     273      // Done by classical server or secondary server 
     274      if (!CXios::usingServer2 || (CXios::usingServer2 && !context->hasClient)) 
    273275      { 
    274         if (!isOpen) createHeader(); 
    275         checkSync(); 
    276       } 
    277       else 
    278       { 
    279         if (!isOpen) openInReadMode(); 
    280       } 
    281       checkSplit(); 
     276        if (mode.isEmpty() || mode.getValue() == mode_attr::write) 
     277        { 
     278          if (!isOpen) createHeader(); 
     279          checkSync(); 
     280        } 
     281        else 
     282        { 
     283          if (!isOpen) openInReadMode(); 
     284        } 
     285        checkSplit(); 
     286      } 
    282287    } 
    283288 
     
    590595     CContext* context = CContext::getCurrent(); 
    591596     CContextClient* client=context->client; 
     597//     CContextClient* client = (0 != context->clientPrimServer.size()) ? context->clientPrimServer[0] : context->client; 
    592598 
    593599     // It would probably be better to call initFile() somehow 
Note: See TracChangeset for help on using the changeset viewer.