summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/validate_tests.cpp
diff options
context:
space:
mode:
authorRobert Guo <robert.guo@10gen.com>2016-04-12 17:47:30 -0400
committerRobert Guo <robert.guo@10gen.com>2016-04-29 16:07:43 -0400
commit1d58e42a8a2030d956c972dab20da9c9f01d61bf (patch)
tree05ab35edcb4dd5f30791261fa9ccee23132418a2 /src/mongo/dbtests/validate_tests.cpp
parent98dacf304edac746ffd4f1820c0065fbf9aec7e3 (diff)
downloadmongo-1d58e42a8a2030d956c972dab20da9c9f01d61bf.tar.gz
SERVER-23055 optimize perf of hashtable used by validate()
Diffstat (limited to 'src/mongo/dbtests/validate_tests.cpp')
-rw-r--r--src/mongo/dbtests/validate_tests.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/dbtests/validate_tests.cpp b/src/mongo/dbtests/validate_tests.cpp
index 308c81482d1..1c32e715510 100644
--- a/src/mongo/dbtests/validate_tests.cpp
+++ b/src/mongo/dbtests/validate_tests.cpp
@@ -70,7 +70,8 @@ protected:
bool checkValid() {
ValidateResults results;
BSONObjBuilder output;
- ASSERT_OK(collection()->validate(&_txn, _full, false, &results, &output));
+ ASSERT_OK(collection()->validate(
+ &_txn, _full ? kValidateFull : kValidateIndex, &results, &output));
// Check if errors are reported if and only if valid is set to false.
ASSERT_EQ(results.valid, results.errors.empty());