summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2014-01-30 16:32:56 -0500
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2014-01-30 17:13:15 -0500
commitadf15ca89abe4027391582a213d649b0f5be62a8 (patch)
tree8e7577e5d5ba46142049ed24002fba94113ee541
parenta032cf6ff24697aabc5940c0c3d20639e6ea99dd (diff)
downloadmongo-adf15ca89abe4027391582a213d649b0f5be62a8.tar.gz
SERVER-12556 On 32-bit Windows test runs shorten the duration of PerfTests::InsertBig
-rw-r--r--src/mongo/dbtests/perftests.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/mongo/dbtests/perftests.cpp b/src/mongo/dbtests/perftests.cpp
index d81e52ec11d..5d4fdbe5c9e 100644
--- a/src/mongo/dbtests/perftests.cpp
+++ b/src/mongo/dbtests/perftests.cpp
@@ -1071,8 +1071,14 @@ namespace PerfTests {
class InsertBig : public B {
BSONObj x;
virtual int howLongMillis() {
- if( sizeof(void*) == 4 )
- return 1000; // could exceed mmapping if run too long, as this function adds a lot fasta
+ if (sizeof(void*) == 4) {
+ // See SERVER-12556 - Running this test for some time causes occasional failures
+ // on Windows 32-bit, because the virtual address space is used up and remapping
+ // starts to fail. Value of zero means that only one iteration of the test
+ // will run.
+ //
+ return 0;
+ }
return 5000;
}
public: