look up a MMF by filename.
More...
#include <mmap.h>
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");
◆ MongoFileFinder()
mongo::MongoFileFinder::MongoFileFinder |
( |
OperationContext * |
opCtx | ) |
|
|
inline |
◆ 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()
◆ _lk
The documentation for this class was generated from the following files:
- /home/louis/git/mongodbsource.github.io/src/src/mongo/db/storage/mmap_v1/mmap.h
- /home/louis/git/mongodbsource.github.io/src/src/mongo/db/storage/mmap_v1/mmap.cpp