summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/index_consistency.cpp
diff options
context:
space:
mode:
authorMathias Stearn <redbeard0531@gmail.com>2022-02-04 14:58:47 +0100
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-02-11 13:17:40 +0000
commit5717ae8710c8d91949e080ed98385d0ed990fded (patch)
treebcb5f700ffeef4e06f7ac5cf097cab0194d41779 /src/mongo/db/catalog/index_consistency.cpp
parent58b7a5be37e56989f015d6964cb31df073b95168 (diff)
downloadmongo-5717ae8710c8d91949e080ed98385d0ed990fded.tar.gz
SERVER-63251 Refactor IndexAccessMethod to support non-SortedData indexes
Diffstat (limited to 'src/mongo/db/catalog/index_consistency.cpp')
-rw-r--r--src/mongo/db/catalog/index_consistency.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/catalog/index_consistency.cpp b/src/mongo/db/catalog/index_consistency.cpp
index 141a54cf00b..55e35b744f8 100644
--- a/src/mongo/db/catalog/index_consistency.cpp
+++ b/src/mongo/db/catalog/index_consistency.cpp
@@ -405,8 +405,8 @@ void IndexConsistency::addIndexKey(OperationContext* opCtx,
writeConflictRetry(
opCtx, "removingExtraIndexEntries", _validateState->nss().ns(), [&] {
WriteUnitOfWork wunit(opCtx);
- Status status = indexInfo->accessMethod->removeKeys(
- opCtx, {ks}, recordId, options, &numDeleted);
+ Status status = indexInfo->accessMethod->asSortedData()->removeKeys(
+ opCtx, {ks}, options, &numDeleted);
wunit.commit();
});
auto& indexResults = results->indexResultsMap[indexInfo->indexName];