summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/explain.cpp
diff options
context:
space:
mode:
authorXin Hao Zhang <xinhao.zhang@mongodb.com>2019-07-23 11:35:07 -0400
committerXin Hao Zhang <xinhao.zhang@mongodb.com>2019-07-24 08:09:43 -0400
commit5c9f7fb5d38df176bda950bdea6aaadbcb73e8e1 (patch)
treeefbde299324ff4b5f1e132c64b5ea00918cf8ecd /src/mongo/db/query/explain.cpp
parent093b5bf0d87d3415e32af22ce8a7f19a47f64929 (diff)
downloadmongo-5c9f7fb5d38df176bda950bdea6aaadbcb73e8e1.tar.gz
SERVER-36186 Default to the the oplogreplay optimization path for oplog collections
Diffstat (limited to 'src/mongo/db/query/explain.cpp')
-rw-r--r--src/mongo/db/query/explain.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/db/query/explain.cpp b/src/mongo/db/query/explain.cpp
index eb109928be4..be8a1c95cdd 100644
--- a/src/mongo/db/query/explain.cpp
+++ b/src/mongo/db/query/explain.cpp
@@ -361,6 +361,9 @@ void Explain::statsToBSON(const PlanStageStats& stats,
} else if (STAGE_COLLSCAN == stats.stageType) {
CollectionScanStats* spec = static_cast<CollectionScanStats*>(stats.specific.get());
bob->append("direction", spec->direction > 0 ? "forward" : "backward");
+ if (spec->minTs) {
+ bob->append("minTs", *(spec->minTs));
+ }
if (spec->maxTs) {
bob->append("maxTs", *(spec->maxTs));
}