diff options
author | samontea <merciers.merciers@gmail.com> | 2021-02-05 23:05:50 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-02-06 03:25:09 +0000 |
commit | 6feae12fe29a4c921bdbf03dd8b1ae6d5dd27f92 (patch) | |
tree | 9546022a87a585931702b5ba01eb467a4cf1e5e8 /src/mongo/db/error_labels.cpp | |
parent | 1598de55e0a96db575a3945e05cbb392620d1af4 (diff) | |
download | mongo-6feae12fe29a4c921bdbf03dd8b1ae6d5dd27f92.tar.gz |
SERVER-53127 Let AggregationRequestHelper::parseFromBSON() return an AggregateCommand
Diffstat (limited to 'src/mongo/db/error_labels.cpp')
-rw-r--r-- | src/mongo/db/error_labels.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/error_labels.cpp b/src/mongo/db/error_labels.cpp index 2caa2c6c6fe..bdb6dc65b20 100644 --- a/src/mongo/db/error_labels.cpp +++ b/src/mongo/db/error_labels.cpp @@ -102,8 +102,8 @@ bool ErrorLabelBuilder::isResumableChangeStreamError() const { // Do enough parsing to confirm that this is a well-formed pipeline with a $changeStream. const auto swLitePipe = [&nss, &cmdObj, apiStrict]() -> StatusWith<LiteParsedPipeline> { try { - auto aggRequest = uassertStatusOK( - aggregation_request_helper::parseFromBSON(nss, cmdObj, boost::none, apiStrict)); + auto aggRequest = + aggregation_request_helper::parseFromBSON(nss, cmdObj, boost::none, apiStrict); return LiteParsedPipeline(aggRequest); } catch (const DBException& ex) { return ex.toStatus(); |