diff options
author | Will Buerger <will.buerger@mongodb.com> | 2023-05-05 13:36:36 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-05-05 16:42:44 +0000 |
commit | 72e24ba9bbc1c3043d35d47e30cda75075ff3d95 (patch) | |
tree | 4673ecbe265e23f3a01cac1e187c0290c71110a3 /src/mongo/s/commands/cluster_find_cmd.h | |
parent | d66daf618a9005eaba4a8c9fa3746ef27ab80427 (diff) | |
download | mongo-72e24ba9bbc1c3043d35d47e30cda75075ff3d95.tar.gz |
SERVER-76557: Keep RequestShapifiers in telemetry store
Diffstat (limited to 'src/mongo/s/commands/cluster_find_cmd.h')
-rw-r--r-- | src/mongo/s/commands/cluster_find_cmd.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mongo/s/commands/cluster_find_cmd.h b/src/mongo/s/commands/cluster_find_cmd.h index aa6c2873c8a..942e0893434 100644 --- a/src/mongo/s/commands/cluster_find_cmd.h +++ b/src/mongo/s/commands/cluster_find_cmd.h @@ -225,11 +225,11 @@ public: MatchExpressionParser::kAllowAllSpecialFeatures)); if (!_didDoFLERewrite) { - telemetry::registerRequest( - telemetry::FindRequestShapifier(cq->getFindCommandRequest(), opCtx), - cq->nss(), - opCtx, - cq->getExpCtx()); + telemetry::registerRequest(std::make_unique<telemetry::FindRequestShapifier>( + cq->getFindCommandRequest(), opCtx), + cq->nss(), + opCtx, + cq->getExpCtx()); } try { |