diff options
author | Xin Hao Zhang <xinhao.zhang@mongodb.com> | 2019-07-23 11:35:07 -0400 |
---|---|---|
committer | Xin Hao Zhang <xinhao.zhang@mongodb.com> | 2019-07-24 08:09:43 -0400 |
commit | 5c9f7fb5d38df176bda950bdea6aaadbcb73e8e1 (patch) | |
tree | efbde299324ff4b5f1e132c64b5ea00918cf8ecd /src/mongo/db/query/explain.cpp | |
parent | 093b5bf0d87d3415e32af22ce8a7f19a47f64929 (diff) | |
download | mongo-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.cpp | 3 |
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)); } |