diff options
Diffstat (limited to 'util/mmap.h')
-rw-r--r-- | util/mmap.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/util/mmap.h b/util/mmap.h index ed4ca99c326..140f33a5bd1 100644 --- a/util/mmap.h +++ b/util/mmap.h @@ -22,6 +22,10 @@ namespace mongo { class MemoryMappedFile { public: + enum Options { + SEQUENTIAL = 1 + }; + MemoryMappedFile(); ~MemoryMappedFile(); /* closes the file if open */ void close(); @@ -32,7 +36,7 @@ namespace mongo { /* Creates with length if DNE, otherwise uses existing file length, passed length. */ - void* map(const char *filename, long &length); + void* map(const char *filename, long &length, int options = 0 ); void flush(bool sync); |