diff options
author | dwight <dwight@10gen.com> | 2011-02-21 19:09:54 -0500 |
---|---|---|
committer | dwight <dwight@10gen.com> | 2011-02-21 19:09:54 -0500 |
commit | b138f371920a426137d0f964be6761d6523dba8b (patch) | |
tree | 6acefd2a59033837f49e985276a65b3b6e31b05a | |
parent | badd41ef11213d3e1b27bcad262ccc69d89bd155 (diff) | |
download | mongo-b138f371920a426137d0f964be6761d6523dba8b.tar.gz |
comments
-rw-r--r-- | db/mongommf.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/db/mongommf.cpp b/db/mongommf.cpp index 3349aead6ed..74899c85fbf 100644 --- a/db/mongommf.cpp +++ b/db/mongommf.cpp @@ -174,9 +174,9 @@ namespace mongo { } void* MemoryMappedFile::remapPrivateView(void *oldPrivateAddr) { - // the mutex is to assure we get the same address on the remap - dbMutex.assertWriteLocked(); + dbMutex.assertWriteLocked(); // short window where we are unmapped so must be exclusive + // the mapViewMutex is to assure we get the same address on the remap scoped_lock lk(mapViewMutex); clearWritableBits(oldPrivateAddr); |