diff options
author | Ben Becker <ben.becker@10gen.com> | 2012-06-10 18:51:57 -0700 |
---|---|---|
committer | Ben Becker <ben.becker@10gen.com> | 2012-06-10 18:51:57 -0700 |
commit | 9a5324a03581753b7c1e7a66959d3c60e7ed7a85 (patch) | |
tree | 5d35fe8c6039161f9e126352c03d49b61ebf08cf /src/mongo/util/mmap_win.cpp | |
parent | edbdfe32ce35e47b2fd11f7ca413353017f138c1 (diff) | |
download | mongo-9a5324a03581753b7c1e7a66959d3c60e7ed7a85.tar.gz |
SERVER-5819: fix file allocator on win32
Diffstat (limited to 'src/mongo/util/mmap_win.cpp')
-rw-r--r-- | src/mongo/util/mmap_win.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/util/mmap_win.cpp b/src/mongo/util/mmap_win.cpp index 330c29c6fce..8bc7097c144 100644 --- a/src/mongo/util/mmap_win.cpp +++ b/src/mongo/util/mmap_win.cpp @@ -23,6 +23,7 @@ #include "../db/memconcept.h" #include "mongo/util/timer.h" #include "mongo/util/concurrency/remap_lock.h" +#include "mongo/util/file_allocator.h" namespace mongo { @@ -135,6 +136,7 @@ namespace mongo { void* MemoryMappedFile::map(const char *filenameIn, unsigned long long &length, int options) { verify( fd == 0 && len == 0 ); // can't open more than once setFilename(filenameIn); + FileAllocator::get()->allocateAsap( filenameIn, length ); /* big hack here: Babble uses db names with colons. doesn't seem to work on windows. temporary perhaps. */ char filename[256]; strncpy(filename, filenameIn, 255); |