diff options
author | dwight <dwight@10gen.com> | 2011-02-15 15:03:56 -0500 |
---|---|---|
committer | dwight <dwight@10gen.com> | 2011-02-15 15:04:12 -0500 |
commit | 9bd9f144b33253773973f3253684d7c627492f0d (patch) | |
tree | 4f67181de2743d565321456e6e82abb3c4d0c276 /dbtests/mmaptests.cpp | |
parent | f7692fea1a67431061e1230acb15c7537c6e2900 (diff) | |
download | mongo-9bd9f144b33253773973f3253684d7c627492f0d.tar.gz |
SERVER-2500 private map was using too much memory on windows
Diffstat (limited to 'dbtests/mmaptests.cpp')
-rw-r--r-- | dbtests/mmaptests.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/dbtests/mmaptests.cpp b/dbtests/mmaptests.cpp index 88dacb8f5a5..7fb6eee98fc 100644 --- a/dbtests/mmaptests.cpp +++ b/dbtests/mmaptests.cpp @@ -52,6 +52,8 @@ namespace MMapTests { char *p = (char *) f.getView(); assert(p); // write something to the private view as a test + if( cmdLine.dur ) + MemoryMappedFile::makeWritable(p, 6); strcpy(p, "hello"); } if( cmdLine.dur ) { @@ -81,6 +83,8 @@ namespace MMapTests { { char *p = (char *) f.getView(); assert(p); + if( cmdLine.dur ) + MemoryMappedFile::makeWritable(p, 4); strcpy(p, "zzz"); } if( cmdLine.dur ) { |