diff options
author | dwight <dwight@10gen.com> | 2010-09-27 22:21:31 -0400 |
---|---|---|
committer | dwight <dwight@10gen.com> | 2010-09-27 22:21:31 -0400 |
commit | be0e007608eb08ace73a87e97218faec21a98e6f (patch) | |
tree | 560ff81bdc61bc129e4e5ed6dc17098a462ea5aa | |
parent | 8f6b5ab3d2fade6a6f6b37af48f55b5a204a6401 (diff) | |
download | mongo-be0e007608eb08ace73a87e97218faec21a98e6f.tar.gz |
comment, vcxproj
-rw-r--r-- | dbtests/test.vcxproj | 2 | ||||
-rw-r--r-- | util/mmap_win.cpp | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/dbtests/test.vcxproj b/dbtests/test.vcxproj index 8b7e5b95fed..4d9ed76dc21 100644 --- a/dbtests/test.vcxproj +++ b/dbtests/test.vcxproj @@ -122,7 +122,7 @@ <ClCompile>
<Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>..\..\js\src;..\pcre-7.4;C:\boost;\boost;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>_UNICODE;UNICODE;SUPPORT_UCP;SUPPORT_UTF8;MONGO_EXPOSE_MACROS;OLDJS;STATIC_JS_API;XP_WIN;WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;HAVE_CONFIG_H;PCRE_STATIC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <PreprocessorDefinitions>_DURABLE,_UNICODE;UNICODE;SUPPORT_UCP;SUPPORT_UTF8;MONGO_EXPOSE_MACROS;OLDJS;STATIC_JS_API;XP_WIN;WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;HAVE_CONFIG_H;PCRE_STATIC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
<PrecompiledHeader>Use</PrecompiledHeader>
diff --git a/util/mmap_win.cpp b/util/mmap_win.cpp index 5901804da67..49cd8b9e8e3 100644 --- a/util/mmap_win.cpp +++ b/util/mmap_win.cpp @@ -161,6 +161,7 @@ namespace mongo { } #if defined(_DURABLE) && defined(_DEBUG) + /** if file was opened read only, get a writeable view */ void* MemoryMappedFile::getWriteViewFor(void *p) { mutex::scoped_lock lk(viewToWriteableMutex); std::map< void*, MemoryMappedFile* >::iterator i = |