diff options
author | Aaron <aaron@10gen.com> | 2012-02-24 22:46:52 -0800 |
---|---|---|
committer | Aaron <aaron@10gen.com> | 2012-02-24 22:49:18 -0800 |
commit | b08eb0591a7ed0965f2ee0d5531809940e68f54f (patch) | |
tree | 9b98d955c6a1f03f92ed5718d6dd2a836eba98ca /src/mongo/db/explain.cpp | |
parent | 96d7f43618723fdcb737552ad2337d5c28cf4650 (diff) | |
download | mongo-b08eb0591a7ed0965f2ee0d5531809940e68f54f.tar.gz |
SERVER-4150 some explain related cleanups
Diffstat (limited to 'src/mongo/db/explain.cpp')
-rw-r--r-- | src/mongo/db/explain.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/db/explain.cpp b/src/mongo/db/explain.cpp index 2b068d5fde8..90760fdf3a5 100644 --- a/src/mongo/db/explain.cpp +++ b/src/mongo/db/explain.cpp @@ -112,7 +112,6 @@ namespace mongo { BSONObj ExplainClauseInfo::bson() const { BSONObjBuilder bb; bb.appendElements( virtualPickedPlan().pickedPlanBson( *this ) ); - // TODO won't include plans w/ no cursor iterates. BSONArrayBuilder allPlans( bb.subarrayStart( "allPlans" ) ); for( list<shared_ptr<const ExplainPlanInfo> >::const_iterator i = _plans.begin(); i != _plans.end(); ++i ) { @@ -185,7 +184,7 @@ namespace mongo { } } verify( 16076, false ); - return *(new ExplainPlanInfo()); // TODO better + return *(new ExplainPlanInfo()); } void ExplainQueryInfo::noteIterate( bool match, bool loadedObject, bool chunkSkip ) { |