diff options
Diffstat (limited to 'src/mongo/db/catalog/collection.h')
-rw-r--r-- | src/mongo/db/catalog/collection.h | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/mongo/db/catalog/collection.h b/src/mongo/db/catalog/collection.h index 31b3f92b036..3f025bacf25 100644 --- a/src/mongo/db/catalog/collection.h +++ b/src/mongo/db/catalog/collection.h @@ -214,6 +214,8 @@ public: virtual const RecordStore* getRecordStore() const = 0; virtual RecordStore* getRecordStore() = 0; + virtual const BSONObj getValidatorDoc() const = 0; + virtual bool requiresIdIndex() const = 0; virtual Snapshotted<BSONObj> docFor(OperationContext* const opCtx, RecordId loc) const = 0; @@ -338,19 +340,6 @@ public: virtual Status truncate(OperationContext* const opCtx) = 0; /** - * Expects the caller to hold at least a collection IS lock. - * - * @return OK if the validate run successfully - * OK will be returned even if corruption is found - * details will be in 'results'. - */ - virtual Status validate(OperationContext* const opCtx, - const ValidateCmdLevel level, - bool background, - ValidateResults* const results, - BSONObjBuilder* const output) = 0; - - /** * forces data into cache. */ virtual Status touch(OperationContext* const opCtx, |