diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2023-04-04 11:26:53 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-04-04 17:16:13 +0000 |
commit | 2d5b6fb51af722de35c34678c8d146743bc52190 (patch) | |
tree | 451194fd2cacc75dbe16d2d67ab0a1c345d29f16 /src/mongo/s/query/cluster_client_cursor_impl.cpp | |
parent | 05794b52523f287f828a8fa692ac3f3ed6cd5dd1 (diff) | |
download | mongo-2d5b6fb51af722de35c34678c8d146743bc52190.tar.gz |
SERVER-75265 Improve queryable encryption handling in curop
Diffstat (limited to 'src/mongo/s/query/cluster_client_cursor_impl.cpp')
-rw-r--r-- | src/mongo/s/query/cluster_client_cursor_impl.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mongo/s/query/cluster_client_cursor_impl.cpp b/src/mongo/s/query/cluster_client_cursor_impl.cpp index 590a970254d..40e3df899b2 100644 --- a/src/mongo/s/query/cluster_client_cursor_impl.cpp +++ b/src/mongo/s/query/cluster_client_cursor_impl.cpp @@ -74,6 +74,7 @@ ClusterClientCursorImpl::ClusterClientCursorImpl(OperationContext* opCtx, _createdDate(opCtx->getServiceContext()->getPreciseClockSource()->now()), _lastUseDate(_createdDate), _queryHash(CurOp::get(opCtx)->debug().queryHash), + _shouldOmitDiagnosticInformation(CurOp::get(opCtx)->debug().shouldOmitDiagnosticInformation), _telemetryStoreKey(CurOp::get(opCtx)->debug().telemetryStoreKey) { dassert(!_params.compareWholeSortKeyOnRouter || SimpleBSONObjComparator::kInstance.evaluate( @@ -91,7 +92,8 @@ ClusterClientCursorImpl::ClusterClientCursorImpl(OperationContext* opCtx, _opCtx(opCtx), _createdDate(opCtx->getServiceContext()->getPreciseClockSource()->now()), _lastUseDate(_createdDate), - _queryHash(CurOp::get(opCtx)->debug().queryHash) { + _queryHash(CurOp::get(opCtx)->debug().queryHash), + _shouldOmitDiagnosticInformation(CurOp::get(opCtx)->debug().shouldOmitDiagnosticInformation) { dassert(!_params.compareWholeSortKeyOnRouter || SimpleBSONObjComparator::kInstance.evaluate( _params.sortToApplyOnRouter == AsyncResultsMerger::kWholeSortKeySortPattern)); @@ -276,4 +278,8 @@ std::unique_ptr<RouterExecStage> ClusterClientCursorImpl::buildMergerPlan( return root; } +bool ClusterClientCursorImpl::shouldOmitDiagnosticInformation() const { + return _shouldOmitDiagnosticInformation; +} + } // namespace mongo |