MongoDB  2.7.0
Public Member Functions | Static Public Member Functions | List of all members
mongo::FileAllocator Class Reference
Inheritance diagram for mongo::FileAllocator:

Public Member Functions

void start ()
 
void requestAllocation (const string &name, long &size)
 May be called if file exists. More...
 
void allocateAsap (const string &name, unsigned long long &size)
 Returns when file has been allocated. More...
 
void waitUntilFinished () const
 
bool hasFailed () const
 

Static Public Member Functions

static void ensureLength (int fd, long size)
 
static FileAllocatorget ()
 

Member Function Documentation

void mongo::FileAllocator::allocateAsap ( const string &  name,
unsigned long long &  size 
)

Returns when file has been allocated.

If file exists, size is updated to match existing file size.

FileAllocator * mongo::FileAllocator::get ( )
static
Returns
the singleton
void mongo::FileAllocator::requestAllocation ( const 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.


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