summaryrefslogtreecommitdiff
path: root/src/mongo/db/index
diff options
context:
space:
mode:
authorLouis Williams <louis.williams@mongodb.com>2020-08-26 14:49:23 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-08-26 23:17:48 +0000
commitda6de1d8f3a60082d12c7392973ec10afa27e1c0 (patch)
treebaf1dc5e9d1f6910b74197e747cf8a0e4a01f704 /src/mongo/db/index
parent6a5d7ae10752697f06d71d6d8c898d7e0f0244bb (diff)
downloadmongo-da6de1d8f3a60082d12c7392973ec10afa27e1c0.tar.gz
SERVER-50185 Update keysPerIndex after repairing index inconsistencies
This also refactors ValidateResult to wrap index-specific validation errors
Diffstat (limited to 'src/mongo/db/index')
-rw-r--r--src/mongo/db/index/index_access_method.cpp2
-rw-r--r--src/mongo/db/index/index_access_method.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/index/index_access_method.cpp b/src/mongo/db/index/index_access_method.cpp
index 94569772cd4..c2a07973796 100644
--- a/src/mongo/db/index/index_access_method.cpp
+++ b/src/mongo/db/index/index_access_method.cpp
@@ -281,7 +281,7 @@ RecordId AbstractIndexAccessMethod::findSingle(OperationContext* opCtx,
void AbstractIndexAccessMethod::validate(OperationContext* opCtx,
int64_t* numKeys,
- ValidateResults* fullResults) const {
+ IndexValidateResults* fullResults) const {
long long keys = 0;
_newInterface->fullValidate(opCtx, &keys, fullResults);
*numKeys = keys;
diff --git a/src/mongo/db/index/index_access_method.h b/src/mongo/db/index/index_access_method.h
index 81e4df363de..c2c3c1e47ca 100644
--- a/src/mongo/db/index/index_access_method.h
+++ b/src/mongo/db/index/index_access_method.h
@@ -167,7 +167,7 @@ public:
*/
virtual void validate(OperationContext* opCtx,
int64_t* numKeys,
- ValidateResults* fullResults) const = 0;
+ IndexValidateResults* fullResults) const = 0;
/**
* Add custom statistics about this index to BSON object builder, for display.
@@ -486,7 +486,7 @@ public:
void validate(OperationContext* opCtx,
int64_t* numKeys,
- ValidateResults* fullResults) const final;
+ IndexValidateResults* fullResults) const final;
bool appendCustomStats(OperationContext* opCtx,
BSONObjBuilder* result,