![]() |
Storage Engine API
|
The record store validate adaptor is used to keep track of the index consistency during a validation that's running. More...
#include <record_store_validate_adaptor.h>
The record store validate adaptor is used to keep track of the index consistency during a validation that's running.
Public Member Functions | |
RecordStoreValidateAdaptor (OperationContext *opCtx, IndexConsistency *indexConsistency, ValidateCmdLevel level, IndexCatalog *ic, ValidateResultsMap *irm) | |
virtual Status | validate (const RecordId &recordId, const RecordData &record, size_t *dataSize) |
Validates the BSON object and traverses through its key set to keep track of the index consistency. More... | |
void | traverseIndex (const IndexAccessMethod *iam, const IndexDescriptor *descriptor, ValidateResults *results, int64_t *numTraversedKeys) |
Traverses the index getting index entriess to validate them and keep track of the index keys for index consistency. More... | |
void | traverseRecordStore (RecordStore *recordStore, ValidateCmdLevel level, ValidateResults *results, BSONObjBuilder *output) |
Traverses the record store to retrieve every record and go through its document key set to keep track of the index consistency during a validation. More... | |
void | validateIndexKeyCount (IndexDescriptor *idx, int64_t numRecs, ValidateResults &results) |
Validate that the number of document keys matches the number of index keys. More... | |
![]() | |
virtual | ~ValidateAdaptor () |
Private Attributes | |
OperationContext * | _opCtx |
IndexConsistency * | _indexConsistency |
ValidateCmdLevel | _level |
IndexCatalog * | _indexCatalog |
ValidateResultsMap * | _indexNsResultsMap |
|
inline |
void mongo::RecordStoreValidateAdaptor::traverseIndex | ( | const IndexAccessMethod * | iam, |
const IndexDescriptor * | descriptor, | ||
ValidateResults * | results, | ||
int64_t * | numTraversedKeys | ||
) |
Traverses the index getting index entriess to validate them and keep track of the index keys for index consistency.
void mongo::RecordStoreValidateAdaptor::traverseRecordStore | ( | RecordStore * | recordStore, |
ValidateCmdLevel | level, | ||
ValidateResults * | results, | ||
BSONObjBuilder * | output | ||
) |
Traverses the record store to retrieve every record and go through its document key set to keep track of the index consistency during a validation.
|
virtual |
Validates the BSON object and traverses through its key set to keep track of the index consistency.
Implements mongo::ValidateAdaptor.
void mongo::RecordStoreValidateAdaptor::validateIndexKeyCount | ( | IndexDescriptor * | idx, |
int64_t | numRecs, | ||
ValidateResults & | results | ||
) |
Validate that the number of document keys matches the number of index keys.
|
private |
|
private |
|
private |
|
private |
|
private |