diff options
author | Dianna Hohensee <dianna.hohensee@mongodb.com> | 2020-03-05 19:01:26 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-03-09 14:49:56 +0000 |
commit | 86d40fda4d156c0a439f1c5edb2b7890a085d337 (patch) | |
tree | 242318bde22dec7df83b524fbe7fe204146674c3 /src/mongo/db/catalog/collection_validation.cpp | |
parent | 8a9d5677f500293448311e6c551549b60cbfc780 (diff) | |
download | mongo-86d40fda4d156c0a439f1c5edb2b7890a085d337.tar.gz |
SERVER-46666 Add extra validate logging for unit tests for debug proposes
rename src/mongo/db/storage/{storage_unittest_debug_util.cpp => storage_debug_util.cpp} (73%)
rename src/mongo/db/storage/{storage_unittest_debug_util.h => storage_debug_util.h} (80%)
Diffstat (limited to 'src/mongo/db/catalog/collection_validation.cpp')
-rw-r--r-- | src/mongo/db/catalog/collection_validation.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/catalog/collection_validation.cpp b/src/mongo/db/catalog/collection_validation.cpp index ffdff6aa52d..76e04d45bd6 100644 --- a/src/mongo/db/catalog/collection_validation.cpp +++ b/src/mongo/db/catalog/collection_validation.cpp @@ -430,14 +430,15 @@ Status validate(OperationContext* opCtx, ValidateOptions options, bool background, ValidateResults* results, - BSONObjBuilder* output) { + BSONObjBuilder* output, + bool turnOnExtraLoggingForTest) { invariant(!opCtx->lockState()->isLocked() || storageGlobalParams.repair); // Background validation does not support any type of full validation. invariant(!(background && (options != ValidateOptions::kNoFullValidation))); // This is deliberately outside of the try-catch block, so that any errors thrown in the // constructor fail the cmd, as opposed to returning OK with valid:false. - ValidateState validateState(opCtx, nss, background, options); + ValidateState validateState(opCtx, nss, background, options, turnOnExtraLoggingForTest); const auto replCoord = repl::ReplicationCoordinator::get(opCtx); // Check whether we are allowed to read from this node after acquiring our locks. If we are |