summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/or.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/exec/or.cpp')
-rw-r--r--src/mongo/db/exec/or.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mongo/db/exec/or.cpp b/src/mongo/db/exec/or.cpp
index ec0d680ac37..078765ffc84 100644
--- a/src/mongo/db/exec/or.cpp
+++ b/src/mongo/db/exec/or.cpp
@@ -122,10 +122,8 @@ unique_ptr<PlanStageStats> OrStage::getStats() {
_commonStats.isEOF = isEOF();
// Add a BSON representation of the filter to the stats tree, if there is one.
- if (nullptr != _filter) {
- BSONObjBuilder bob;
- _filter->serialize(&bob);
- _commonStats.filter = bob.obj();
+ if (_filter) {
+ _commonStats.filter = _filter->serialize();
}
unique_ptr<PlanStageStats> ret = std::make_unique<PlanStageStats>(_commonStats, STAGE_OR);