From 90c89d33c400d2f1eb8972170b7a17e3315c4198 Mon Sep 17 00:00:00 2001 From: Ruoxin Xu Date: Thu, 29 Oct 2020 12:14:01 +0000 Subject: SERVER-51649 Convert aggregate command input to IDL --- src/mongo/db/ops/write_ops_parsers.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mongo/db/ops') diff --git a/src/mongo/db/ops/write_ops_parsers.cpp b/src/mongo/db/ops/write_ops_parsers.cpp index 7c7ef01f16e..295a16e257d 100644 --- a/src/mongo/db/ops/write_ops_parsers.cpp +++ b/src/mongo/db/ops/write_ops_parsers.cpp @@ -33,7 +33,7 @@ #include "mongo/db/dbmessage.h" #include "mongo/db/ops/write_ops.h" -#include "mongo/db/pipeline/aggregation_request.h" +#include "mongo/db/pipeline/aggregation_request_helper.h" #include "mongo/db/update/update_oplog_entry_serialization.h" #include "mongo/db/update/update_oplog_entry_version.h" #include "mongo/util/assert_util.h" @@ -259,7 +259,7 @@ write_ops::UpdateModification::UpdateModification(BSONElement update) { "Update argument must be either an object or an array", type == BSONType::Array); - _update = PipelineUpdate{uassertStatusOK(AggregationRequest::parsePipelineFromBSON(update))}; + _update = PipelineUpdate{parsePipelineFromBSON(update)}; } write_ops::UpdateModification::UpdateModification(const BSONObj& update, ClassicTag) { -- cgit v1.2.1