diff options
author | Xiangyu Yao <xiangyu.yao@mongodb.com> | 2019-07-10 18:38:03 -0400 |
---|---|---|
committer | Xiangyu Yao <xiangyu.yao@mongodb.com> | 2019-07-10 18:38:03 -0400 |
commit | cb3b6c8b2a28190560906db4d78ef833eec44425 (patch) | |
tree | 8f550393c99b15f4b27d9bbb27115fc451930be7 /src/mongo/db/pipeline/document_source_coll_stats.cpp | |
parent | a4ef14ef41f0700ef07e5b57b0345d2396a44604 (diff) | |
download | mongo-cb3b6c8b2a28190560906db4d78ef833eec44425.tar.gz |
Revert "SERVER-40755 Expose statistics which indicate how many collection scans have executed"
This reverts commit a4ef14ef41f0700ef07e5b57b0345d2396a44604.
Diffstat (limited to 'src/mongo/db/pipeline/document_source_coll_stats.cpp')
-rw-r--r-- | src/mongo/db/pipeline/document_source_coll_stats.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/mongo/db/pipeline/document_source_coll_stats.cpp b/src/mongo/db/pipeline/document_source_coll_stats.cpp index a02a6018231..df6063dad52 100644 --- a/src/mongo/db/pipeline/document_source_coll_stats.cpp +++ b/src/mongo/db/pipeline/document_source_coll_stats.cpp @@ -85,17 +85,6 @@ intrusive_ptr<DocumentSource> DocumentSourceCollStats::createFromBson( << " of type " << typeName(elem.type()), elem.type() == BSONType::Object); - } else if ("queryExecStats" == fieldName) { - uassert(31141, - str::stream() << "queryExecStats argument must be an empty object, but got " - << elem - << " of type " - << typeName(elem.type()), - elem.type() == BSONType::Object); - uassert(31170, - str::stream() << "queryExecStats argument must be an empty object, but got " - << elem, - elem.embeddedObject().isEmpty()); } else { uasserted(40168, str::stream() << "unrecognized option to $collStats: " << fieldName); } @@ -160,16 +149,6 @@ DocumentSource::GetNextResult DocumentSourceCollStats::getNext() { } } - if (_collStatsSpec.hasField("queryExecStats")) { - Status status = pExpCtx->mongoProcessInterface->appendQueryExecStats( - pExpCtx->opCtx, pExpCtx->ns, &builder); - if (!status.isOK()) { - uasserted(31142, - str::stream() << "Unable to retrieve queryExecStats in $collStats stage: " - << status.reason()); - } - } - return {Document(builder.obj())}; } |