diff options
author | Robert Guo <robert.guo@10gen.com> | 2016-04-12 17:47:30 -0400 |
---|---|---|
committer | Robert Guo <robert.guo@10gen.com> | 2016-04-29 16:07:43 -0400 |
commit | 1d58e42a8a2030d956c972dab20da9c9f01d61bf (patch) | |
tree | 05ab35edcb4dd5f30791261fa9ccee23132418a2 /src/mongo/dbtests/validate_tests.cpp | |
parent | 98dacf304edac746ffd4f1820c0065fbf9aec7e3 (diff) | |
download | mongo-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.cpp | 3 |
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()); |