summaryrefslogtreecommitdiff
path: root/src/mongo/db
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2014-04-14 22:01:21 -0400
committerMark Benvenuto <mark.benvenuto@mongodb.com>2014-06-05 18:57:10 -0400
commit78c068e5d63d77648954252a785b3673d6e314b7 (patch)
tree3cb5a2e3cf0fe502bf9b927c0541b0e349c19871 /src/mongo/db
parent89383b224f061d306240d621745ba082a4ecb23b (diff)
downloadmongo-78c068e5d63d77648954252a785b3673d6e314b7.tar.gz
SERVER-13681: Remove lock that was an incorrect workaround for Azure Drive write size limitations.
- Limit flushes to 2MB chunks to prevent hitting a limitation in Azure Network Drives (XDrive) which have a 2MB file write size limitation.
Diffstat (limited to 'src/mongo/db')
-rw-r--r--src/mongo/db/storage/mmap_v1/dur_writetodatafiles.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/mongo/db/storage/mmap_v1/dur_writetodatafiles.cpp b/src/mongo/db/storage/mmap_v1/dur_writetodatafiles.cpp
index 1fbb80c2253..05ed343c209 100644
--- a/src/mongo/db/storage/mmap_v1/dur_writetodatafiles.cpp
+++ b/src/mongo/db/storage/mmap_v1/dur_writetodatafiles.cpp
@@ -37,9 +37,6 @@
#include "mongo/util/timer.h"
namespace mongo {
-#ifdef _WIN32
- extern SimpleMutex globalFlushMutex; // defined in mongo/util/mmap_win.cpp
-#endif
namespace dur {
void debugValidateAllMapsMatch();
@@ -99,9 +96,6 @@ namespace mongo {
*/
void WRITETODATAFILES(const JSectHeader& h, AlignedBuilder& uncompressed) {
-#ifdef _WIN32
- SimpleMutex::scoped_lock _globalFlushMutex(globalFlushMutex);
-#endif
Timer t;
WRITETODATAFILES_Impl1(h, uncompressed);
long long m = t.micros();