0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 00:56:44 +01:00

fix mm option

This commit is contained in:
Eliot Horowitz 2010-03-03 17:23:37 -05:00
parent 982ca5d436
commit 0a82362581

View File

@ -31,14 +31,13 @@ namespace mongo {
void MemoryMappedFile::close() {
if ( view )
delete( view );
free( view );
view = 0;
len = 0;
}
void* MemoryMappedFile::map(const char *filename, size_t length) {
path p( filename );
void* MemoryMappedFile::map(const char *filename, long& length , int options ) {
assert( length );
view = malloc( length );
return view;
}