Storage Engine API
mongo::MongoFileFinder Class Reference

look up a MMF by filename. More...

#include <mmap.h>

Detailed Description

look up a MMF by filename.

scoped mutex locking convention. example: MMFFinderByName finder; DurableMappedFile *a = finder.find("file_name_a"); DurableMappedFile *b = finder.find("file_name_b");

Public Member Functions

 MongoFileFinder (OperationContext *opCtx)
 
MongoFilefindByPath (const std::string &path) const
 

Private Member Functions

 MONGO_DISALLOW_COPYING (MongoFileFinder)
 

Private Attributes

LockMongoFilesShared _lk
 

Constructor & Destructor Documentation

◆ MongoFileFinder()

mongo::MongoFileFinder::MongoFileFinder ( OperationContext *  opCtx)
inline

Member Function Documentation

◆ findByPath()

MongoFile * mongo::MongoFileFinder::findByPath ( const std::string &  path) const
Returns
The MongoFile object associated with the specified file name. If no file is open with the specified name, returns null.

◆ MONGO_DISALLOW_COPYING()

mongo::MongoFileFinder::MONGO_DISALLOW_COPYING ( MongoFileFinder  )
private

Member Data Documentation

◆ _lk

LockMongoFilesShared mongo::MongoFileFinder::_lk
private

The documentation for this class was generated from the following files: