summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/text_match.cpp
diff options
context:
space:
mode:
authorMartin Neupauer <martin.neupauer@mongodb.com>2019-08-29 13:22:09 +0000
committerevergreen <evergreen@mongodb.com>2019-08-29 13:22:09 +0000
commit3cdbdedce431fbc71a5eb89b689268e783d73bd4 (patch)
tree327109bb734c91384f13f5acee6b71c917ea1fd3 /src/mongo/db/exec/text_match.cpp
parentffd486c3ff049abc9f8a2c76b3e2b9dea970c19b (diff)
downloadmongo-3cdbdedce431fbc71a5eb89b689268e783d73bd4.tar.gz
SERVER-42181 Make WorkingSetMember hold Document instead of BSONObj
SERVER-42157 Unowned mode for Document/Value
Diffstat (limited to 'src/mongo/db/exec/text_match.cpp')
-rw-r--r--src/mongo/db/exec/text_match.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/exec/text_match.cpp b/src/mongo/db/exec/text_match.cpp
index a74a7149506..b405608c134 100644
--- a/src/mongo/db/exec/text_match.cpp
+++ b/src/mongo/db/exec/text_match.cpp
@@ -88,7 +88,7 @@ PlanStage::StageState TextMatchStage::doWork(WorkingSetID* out) {
WorkingSetMember* wsm = _ws->get(*out);
// Filter for phrases and negated terms.
- if (!_ftsMatcher.matches(wsm->obj.value())) {
+ if (!_ftsMatcher.matches(wsm->doc.value().toBson())) {
_ws->free(*out);
*out = WorkingSet::INVALID_ID;
++_specificStats.docsRejected;