diff options
author | Hugh Tong <hugh.tong@mongodb.com> | 2022-07-26 19:20:58 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-07-26 21:00:49 +0000 |
commit | 044d2f734e0dba40b9dfb02cc49c2bff8f575cd5 (patch) | |
tree | eb2d17564a0c99d2ee9ea3d2f95c81c46bcfcee1 /src/mongo/db/ops | |
parent | 921bba175902f9b9f29751a466383c3d7e80df7b (diff) | |
download | mongo-044d2f734e0dba40b9dfb02cc49c2bff8f575cd5.tar.gz |
SERVER-67824 Rename IDLParserErrorContext to IDLParserContext
Diffstat (limited to 'src/mongo/db/ops')
-rw-r--r-- | src/mongo/db/ops/write_ops.cpp | 14 | ||||
-rw-r--r-- | src/mongo/db/ops/write_ops_retryability.cpp | 3 |
2 files changed, 8 insertions, 9 deletions
diff --git a/src/mongo/db/ops/write_ops.cpp b/src/mongo/db/ops/write_ops.cpp index 4389f1b0032..0ef8f329558 100644 --- a/src/mongo/db/ops/write_ops.cpp +++ b/src/mongo/db/ops/write_ops.cpp @@ -311,7 +311,7 @@ BSONObj WriteError::serialize() const { } // namespace write_ops InsertCommandRequest InsertOp::parse(const OpMsgRequest& request) { - auto insertOp = InsertCommandRequest::parse(IDLParserErrorContext("insert"), request); + auto insertOp = InsertCommandRequest::parse(IDLParserContext("insert"), request); validate(insertOp); return insertOp; @@ -346,7 +346,7 @@ InsertCommandRequest InsertOp::parseLegacy(const Message& msgRaw) { InsertCommandReply InsertOp::parseResponse(const BSONObj& obj) { uassertStatusOK(getStatusFromCommandResult(obj)); - return InsertCommandReply::parse(IDLParserErrorContext("insertReply"), obj); + return InsertCommandReply::parse(IDLParserContext("insertReply"), obj); } void InsertOp::validate(const InsertCommandRequest& insertOp) { @@ -355,7 +355,7 @@ void InsertOp::validate(const InsertCommandRequest& insertOp) { } UpdateCommandRequest UpdateOp::parse(const OpMsgRequest& request) { - auto updateOp = UpdateCommandRequest::parse(IDLParserErrorContext("update"), request); + auto updateOp = UpdateCommandRequest::parse(IDLParserContext("update"), request); checkOpCountForCommand(updateOp, updateOp.getUpdates().size()); return updateOp; @@ -364,7 +364,7 @@ UpdateCommandRequest UpdateOp::parse(const OpMsgRequest& request) { UpdateCommandReply UpdateOp::parseResponse(const BSONObj& obj) { uassertStatusOK(getStatusFromCommandResult(obj)); - return UpdateCommandReply::parse(IDLParserErrorContext("updateReply"), obj); + return UpdateCommandReply::parse(IDLParserContext("updateReply"), obj); } void UpdateOp::validate(const UpdateCommandRequest& updateOp) { @@ -374,11 +374,11 @@ void UpdateOp::validate(const UpdateCommandRequest& updateOp) { FindAndModifyCommandReply FindAndModifyOp::parseResponse(const BSONObj& obj) { uassertStatusOK(getStatusFromCommandResult(obj)); - return FindAndModifyCommandReply::parse(IDLParserErrorContext("findAndModifyReply"), obj); + return FindAndModifyCommandReply::parse(IDLParserContext("findAndModifyReply"), obj); } DeleteCommandRequest DeleteOp::parse(const OpMsgRequest& request) { - auto deleteOp = DeleteCommandRequest::parse(IDLParserErrorContext("delete"), request); + auto deleteOp = DeleteCommandRequest::parse(IDLParserContext("delete"), request); checkOpCountForCommand(deleteOp, deleteOp.getDeletes().size()); return deleteOp; @@ -386,7 +386,7 @@ DeleteCommandRequest DeleteOp::parse(const OpMsgRequest& request) { DeleteCommandReply DeleteOp::parseResponse(const BSONObj& obj) { uassertStatusOK(getStatusFromCommandResult(obj)); - return DeleteCommandReply::parse(IDLParserErrorContext("deleteReply"), obj); + return DeleteCommandReply::parse(IDLParserContext("deleteReply"), obj); } void DeleteOp::validate(const DeleteCommandRequest& deleteOp) { diff --git a/src/mongo/db/ops/write_ops_retryability.cpp b/src/mongo/db/ops/write_ops_retryability.cpp index 084bc14d5dc..4f0189e6572 100644 --- a/src/mongo/db/ops/write_ops_retryability.cpp +++ b/src/mongo/db/ops/write_ops_retryability.cpp @@ -144,8 +144,7 @@ BSONObj extractPreOrPostImage(OperationContext* opCtx, const repl::OplogEntry& o << sessionId.toBSON() << " cannot be found"); } - auto entry = - repl::ImageEntry::parse(IDLParserErrorContext("ImageEntryForRequest"), imageDoc); + auto entry = repl::ImageEntry::parse(IDLParserContext("ImageEntryForRequest"), imageDoc); if (entry.getInvalidated()) { // This case is expected when a node could not correctly compute a retry image due // to data inconsistency while in initial sync. |