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:
parent
982ca5d436
commit
0a82362581
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user