diff options
author | Ruoxin Xu <ruoxin.xu@mongodb.com> | 2020-10-29 12:14:01 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-01-07 11:20:50 +0000 |
commit | 90c89d33c400d2f1eb8972170b7a17e3315c4198 (patch) | |
tree | 2aaee3468e4350950b546b2b24783d9ddc2d8e2e /src/mongo/db/ops | |
parent | 66cdb6d0fccf3b65c61a1bea5d6171591d21c9da (diff) | |
download | mongo-90c89d33c400d2f1eb8972170b7a17e3315c4198.tar.gz |
SERVER-51649 Convert aggregate command input to IDL
Diffstat (limited to 'src/mongo/db/ops')
-rw-r--r-- | src/mongo/db/ops/write_ops_parsers.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |