Beispiel #1
0
    /*virtual*/ void MongoMMF::close() {
#if defined(_DURABLE)
        {
            if( !testIntent && cmdLine.dur ) { 
                dur::closingFileNotification();
            }
            privateViews.remove(_view_private);
            if( debug ) {
                ourReadViews.remove(_view_readonly);
            }
        }
#endif
        _view_write = _view_private = _view_readonly = 0;
        MemoryMappedFile::close();
    }
Beispiel #2
0
 /*virtual*/ void MongoMMF::close() {
     {
         if( cmdLine.dur && _view_write/*actually was opened*/ ) {
             dur::closingFileNotification();
         }
         privateViews.remove(_view_private);
     }
     _view_write = _view_private = 0;
     MemoryMappedFile::close();
 }
Beispiel #3
0
 /*virtual*/ void MongoMMF::close() {
     {
         if( cmdLine.dur && _view_write/*actually was opened*/ ) {
             if( debug )
                 log() << "closingFileNotication:" << filename() << endl;
             dur::closingFileNotification();
         }
         privateViews.remove(_view_private);
     }
     _view_write = _view_private = 0;
     MemoryMappedFile::close();
 }