diff options
author | dwight <dwight@10gen.com> | 2011-01-08 14:43:04 -0500 |
---|---|---|
committer | dwight <dwight@10gen.com> | 2011-01-08 14:43:04 -0500 |
commit | bcb127567ddd8690ec1897a34c3fb81f27866b6b (patch) | |
tree | 1d7f511590485cdfb651fa735ef28f90bae11185 /util/mmap.cpp | |
parent | f07eb9c5b31baa002abf7f94418515564de4f731 (diff) | |
download | mongo-bcb127567ddd8690ec1897a34c3fb81f27866b6b.tar.gz |
faster
Diffstat (limited to 'util/mmap.cpp')
-rw-r--r-- | util/mmap.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/util/mmap.cpp b/util/mmap.cpp index ae840e8310d..79db7b06a93 100644 --- a/util/mmap.cpp +++ b/util/mmap.cpp @@ -178,6 +178,7 @@ namespace mongo { ptf = this; } +#if defined(_DEBUG) void MongoFile::markAllWritable() { rwlock lk( mmmutex , false ); for ( set<MongoFile*>::iterator i = mmfiles.begin(); i != mmfiles.end(); i++ ) { @@ -193,4 +194,5 @@ namespace mongo { if (mmf) mmf->_unlock(); } } +#endif } // namespace mongo |