diff options
-rw-r--r-- | src/mongo/db/catalog/collection_validation.h | 4 | ||||
-rw-r--r-- | src/mongo/db/commands/validate.cpp | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/mongo/db/catalog/collection_validation.h b/src/mongo/db/catalog/collection_validation.h index 378244f39b7..70868e1e0f7 100644 --- a/src/mongo/db/catalog/collection_validation.h +++ b/src/mongo/db/catalog/collection_validation.h @@ -89,10 +89,6 @@ enum class RepairMode { /** * Expects the caller to hold no locks. * - * Background validation does not support any type of full validation above. - * The combination of background = true and options of anything other than kNoFullValidation is - * prohibited. - * * @return OK if the validate run successfully * OK will be returned even if corruption is found * details will be in 'results'. diff --git a/src/mongo/db/commands/validate.cpp b/src/mongo/db/commands/validate.cpp index 60ff0850f21..21e3a2fef40 100644 --- a/src/mongo/db/commands/validate.cpp +++ b/src/mongo/db/commands/validate.cpp @@ -71,6 +71,7 @@ stdx::condition_variable _validationNotifier; * validate: "collectionNameWithoutTheDBPart", * full: <bool> // If true, a more thorough (and slower) collection validation is performed. * background: <bool> // If true, performs validation on the checkpoint of the collection. + * metadata: <bool> // If true, performs a faster validation only on metadata. * } */ class ValidateCmd : public BasicCommand { @@ -87,6 +88,7 @@ public: << "\tAdd {full: true} option to do a more thorough check.\n" << "\tAdd {background: true} to validate in the background.\n" << "\tAdd {repair: true} to run repair mode.\n" + << "\tAdd {metadata: true} to only check collection metadata.\n" << "Cannot specify both {full: true, background: true}."; } |