summaryrefslogtreecommitdiff
path: root/util/mmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'util/mmap.h')
-rw-r--r--util/mmap.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/util/mmap.h b/util/mmap.h
index ed4ca99..947364b 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);
@@ -58,6 +62,7 @@ namespace mongo {
void *view;
long len;
};
-
+
+ void printMemInfo( const char * where );
} // namespace mongo