summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/working_set_common.cpp
diff options
context:
space:
mode:
authorSiyuan Zhou <siyuan.zhou@mongodb.com>2016-11-06 01:33:50 -0400
committerSiyuan Zhou <siyuan.zhou@mongodb.com>2016-11-06 01:33:50 -0400
commitd23e79eb9e69bd746416d9f674dfaee59457c887 (patch)
tree7ae8940e36d5ae51bb4eadd1318860ca212e8c3f /src/mongo/db/exec/working_set_common.cpp
parent0ac04999faae1d2fc0e10972aaf21082a2e48c8f (diff)
downloadmongo-d23e79eb9e69bd746416d9f674dfaee59457c887.tar.gz
Revert "SERVER-26202 Relax index constraints in oplog application"
This reverts commit f00448255bbb24c07e2f55e7e229f19e316350a6.
Diffstat (limited to 'src/mongo/db/exec/working_set_common.cpp')
-rw-r--r--src/mongo/db/exec/working_set_common.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mongo/db/exec/working_set_common.cpp b/src/mongo/db/exec/working_set_common.cpp
index a9035311bba..966e32eec61 100644
--- a/src/mongo/db/exec/working_set_common.cpp
+++ b/src/mongo/db/exec/working_set_common.cpp
@@ -118,10 +118,7 @@ bool WorkingSetCommon::fetch(OperationContext* txn,
// There's no need to compute the prefixes of the indexed fields that cause the index to
// be multikey when ensuring the keyData is still valid.
MultikeyPaths* multikeyPaths = nullptr;
- member->keyData[i].index->getKeys(member->obj.value(),
- IndexAccessMethod::GetKeysMode::kEnforceConstraints,
- &keys,
- multikeyPaths);
+ member->keyData[i].index->getKeys(member->obj.value(), &keys, multikeyPaths);
if (!keys.count(member->keyData[i].keyData)) {
// document would no longer be at this position in the index.
return false;