#include <file_allocator.h>
◆ FileAllocator()
mongo::FileAllocator::FileAllocator |
( |
| ) |
|
|
private |
◆ allocateAsap()
void mongo::FileAllocator::allocateAsap |
( |
const std::string & |
name, |
|
|
unsigned long long & |
size |
|
) |
| |
Returns when file has been allocated.
If file exists, size is updated to match existing file size.
◆ checkFailure()
void mongo::FileAllocator::checkFailure |
( |
| ) |
|
|
private |
◆ ensureLength()
void mongo::FileAllocator::ensureLength |
( |
int |
fd, |
|
|
long |
size |
|
) |
| |
|
static |
◆ get()
◆ inProgress()
bool mongo::FileAllocator::inProgress |
( |
const std::string & |
name | ) |
const |
|
private |
◆ makeTempFileName()
string mongo::FileAllocator::makeTempFileName |
( |
boost::filesystem::path |
root | ) |
|
|
private |
◆ MONGO_DISALLOW_COPYING()
◆ prevSize()
long mongo::FileAllocator::prevSize |
( |
const std::string & |
name | ) |
const |
|
private |
◆ requestAllocation()
void mongo::FileAllocator::requestAllocation |
( |
const std::string & |
name, |
|
|
long & |
size |
|
) |
| |
May be called if file exists.
If file exists, or its allocation has been requested, size is updated to match existing file size.
◆ run()
called from the worked thread
◆ start()
void mongo::FileAllocator::start |
( |
| ) |
|
◆ waitUntilFinished()
void mongo::FileAllocator::waitUntilFinished |
( |
| ) |
const |
◆ _failed
bool mongo::FileAllocator::_failed |
|
private |
◆ _pending
std::list<std::string> mongo::FileAllocator::_pending |
|
private |
◆ _pendingMutex
stdx::mutex mongo::FileAllocator::_pendingMutex |
|
mutableprivate |
◆ _pendingSize
std::map<std::string, long> mongo::FileAllocator::_pendingSize |
|
mutableprivate |
◆ _pendingUpdated
stdx::condition_variable mongo::FileAllocator::_pendingUpdated |
|
mutableprivate |
◆ _uniqueNumber
unsigned long long mongo::FileAllocator::_uniqueNumber = 0 |
|
staticprivate |
The documentation for this class was generated from the following files:
- /home/louis/git/mongodbsource.github.io/src/src/mongo/db/storage/mmap_v1/file_allocator.h
- /home/louis/git/mongodbsource.github.io/src/src/mongo/db/storage/mmap_v1/file_allocator.cpp