Ejemplo n.º 1
0
 bool MongoMMF::finishOpening() {
     if( _view_write ) {
         if( cmdLine.dur ) {
             _view_private = createPrivateMap();
             privateViews.add(_view_private, this); // note that testIntent builds use this, even though it points to view_write then...
         }
         else {
             _view_private = _view_write;
         }
         return true;
     }
     return false;
 }
Ejemplo n.º 2
0
 bool MongoMMF::finishOpening() {
     if( _view_write ) {
         if( cmdLine.dur ) {
             _view_private = createPrivateMap();
             massert( 13636 , "createPrivateMap failed (look in log for error)" , _view_private );
             privateViews.add(_view_private, this); // note that testIntent builds use this, even though it points to view_write then...
         }
         else {
             _view_private = _view_write;
         }
         return true;
     }
     return false;
 }
Ejemplo n.º 3
0
 bool DurableMappedFile::finishOpening() {
     LOG(3) << "mmf finishOpening " << (void*) _view_write << ' ' << filename() << " len:" << length() << endl;
     if( _view_write ) {
         if (storageGlobalParams.dur) {
             _view_private = createPrivateMap();
             if( _view_private == 0 ) {
                 msgasserted(13636, str::stream() << "file " << filename() << " open/create failed in createPrivateMap (look in log for more information)");
             }
             privateViews.add(_view_private, this); // note that testIntent builds use this, even though it points to view_write then...
         }
         else {
             _view_private = _view_write;
         }
         return true;
     }
     return false;
 }
Ejemplo n.º 4
0
 bool MongoMMF::finishOpening() {
     if( _view_write ) {
         if( cmdLine.dur ) {
             if( testIntent ) { 
                 _view_private = _view_write;
                 _view_readonly = MemoryMappedFile::createReadOnlyMap();
                 ourReadViews.add(_view_readonly, this);
             }
             else {
                 _view_private = createPrivateMap();
             }
             privateViews.add(_view_private, this); // note that testIntent builds use this, even though it points to view_write then...
         }
         else { 
             _view_private = _view_write;
         }
         return true;
     }
     return false;
 }