summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/dbhelper_tests.cpp
diff options
context:
space:
mode:
authorRandolph Tan <randolph@10gen.com>2014-07-15 16:48:59 -0400
committerRandolph Tan <randolph@10gen.com>2014-07-16 13:41:37 -0400
commit2fd2eebb2656ae65bd6eb63b39f8faeb84e0db4e (patch)
treee74a56e3d3423d15565d739721f343fafa753798 /src/mongo/dbtests/dbhelper_tests.cpp
parentd134ba27aa7f2c4eb8fc4b1331c8331f5914bfc6 (diff)
downloadmongo-2fd2eebb2656ae65bd6eb63b39f8faeb84e0db4e.tar.gz
SERVER-14041 enhance secondaryThrottle parameter
This reverts commit 37f2a1e3b724dbd9e1f8eafd4ac87c5bf613c048 (undo revert). This reverts commit d60fd22dec1c0bd104622eab463cdbba18bf11a9 (undo revert). Fix Windows compile failure. Add more defensive checks.
Diffstat (limited to 'src/mongo/dbtests/dbhelper_tests.cpp')
-rw-r--r--src/mongo/dbtests/dbhelper_tests.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/dbtests/dbhelper_tests.cpp b/src/mongo/dbtests/dbhelper_tests.cpp
index 33d190ed34c..5877cfc85a2 100644
--- a/src/mongo/dbtests/dbhelper_tests.cpp
+++ b/src/mongo/dbtests/dbhelper_tests.cpp
@@ -30,6 +30,7 @@
#include "mongo/db/catalog/collection.h"
#include "mongo/db/dbhelpers.h"
#include "mongo/db/operation_context_impl.h"
+#include "mongo/db/write_concern_options.h"
#include "mongo/dbtests/dbtests.h"
#include "mongo/unittest/unittest.h"
@@ -68,7 +69,8 @@ namespace mongo {
BSON( "_id" << _min ),
BSON( "_id" << _max ),
BSON( "_id" << 1 ) );
- Helpers::removeRange( &txn, range );
+ mongo::WriteConcernOptions dummyWriteConcern;
+ Helpers::removeRange(&txn, range, false, dummyWriteConcern);
wunit.commit();
}