diff options
author | Gabe Villasana <villagab4@gmail.com> | 2019-07-17 17:53:24 -0400 |
---|---|---|
committer | Gabe Villasana <villagab4@gmail.com> | 2019-07-24 16:47:30 -0400 |
commit | 9dd393da7f1961dc7f09d8b0696a3082dbbf0190 (patch) | |
tree | 471608ace4955a2b610fe78eaf85db079a4a6c8b /src/mongo/db/repl/idempotency_test_fixture.cpp | |
parent | 59790d4626c193613db34c34338c424a636b8cad (diff) | |
download | mongo-9dd393da7f1961dc7f09d8b0696a3082dbbf0190.tar.gz |
SERVER-42180 Move the CollectionImpl::validate logic out of the Collection class and into it's own file + namespace
Diffstat (limited to 'src/mongo/db/repl/idempotency_test_fixture.cpp')
-rw-r--r-- | src/mongo/db/repl/idempotency_test_fixture.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/repl/idempotency_test_fixture.cpp b/src/mongo/db/repl/idempotency_test_fixture.cpp index c6221493aa2..97b3f86fa2d 100644 --- a/src/mongo/db/repl/idempotency_test_fixture.cpp +++ b/src/mongo/db/repl/idempotency_test_fixture.cpp @@ -37,6 +37,7 @@ #include "mongo/db/catalog/collection.h" #include "mongo/db/catalog/collection_catalog.h" +#include "mongo/db/catalog/collection_validation.h" #include "mongo/db/catalog/database.h" #include "mongo/db/catalog/database_holder.h" #include "mongo/db/catalog/index_catalog.h" @@ -614,7 +615,8 @@ CollectionState IdempotencyTest::validate(const NamespaceString& nss) { Lock::DBLock lk(_opCtx.get(), nss.db(), MODE_IX); auto lock = std::make_unique<Lock::CollectionLock>(_opCtx.get(), nss, MODE_X); - ASSERT_OK(collection->validate(_opCtx.get(), kValidateFull, false, &validateResults, &bob)); + ASSERT_OK(CollectionValidation::validate( + _opCtx.get(), collection, kValidateFull, false, &validateResults, &bob)); ASSERT_TRUE(validateResults.valid); std::string dataHash = computeDataHash(collection); |