Changeset 1054 for XIOS/dev/dev_olga/src/node/file.cpp
- Timestamp:
- 02/17/17 19:51:36 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_olga/src/node/file.cpp
r1025 r1054 270 270 void CFile::checkFile(void) 271 271 { 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)) 273 275 { 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 } 282 287 } 283 288 … … 590 595 CContext* context = CContext::getCurrent(); 591 596 CContextClient* client=context->client; 597 // CContextClient* client = (0 != context->clientPrimServer.size()) ? context->clientPrimServer[0] : context->client; 592 598 593 599 // It would probably be better to call initFile() somehow
Note: See TracChangeset
for help on using the changeset viewer.