summaryrefslogtreecommitdiff
path: root/src/mongo/db/index/hash_access_method.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/index/hash_access_method.cpp')
-rw-r--r--src/mongo/db/index/hash_access_method.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/mongo/db/index/hash_access_method.cpp b/src/mongo/db/index/hash_access_method.cpp
index af3382a60c1..d7b79f1c0c9 100644
--- a/src/mongo/db/index/hash_access_method.cpp
+++ b/src/mongo/db/index/hash_access_method.cpp
@@ -56,10 +56,17 @@ HashAccessMethod::HashAccessMethod(IndexCatalogEntry* btreeState, SortedDataInte
}
void HashAccessMethod::doGetKeys(const BSONObj& obj,
+ GetKeysContext context,
BSONObjSet* keys,
MultikeyPaths* multikeyPaths) const {
- ExpressionKeysPrivate::getHashKeys(
- obj, _hashedField, _seed, _hashVersion, _descriptor->isSparse(), _collator, keys);
+ ExpressionKeysPrivate::getHashKeys(obj,
+ _hashedField,
+ _seed,
+ _hashVersion,
+ _descriptor->isSparse(),
+ _collator,
+ keys,
+ (context == GetKeysContext::kRemovingKeys));
}
} // namespace mongo