summaryrefslogtreecommitdiff
path: root/src/mongo/rpc/op_msg.cpp
diff options
context:
space:
mode:
authorHenrik Edin <henrik.edin@mongodb.com>2020-03-23 10:04:42 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-03-24 20:22:44 +0000
commitedb8778350326d2b33f056b1b5f0b25a4b5b444a (patch)
tree15afcaa7a707be0872b764cd054aee55d855ba92 /src/mongo/rpc/op_msg.cpp
parent51b338ad41653a8188adcc67b682ea12bbe63b4d (diff)
downloadmongo-edb8778350326d2b33f056b1b5f0b25a4b5b444a.tar.gz
SERVER-47040 LOGV2_FATAL also fasserts
Added LOGV2_FATAL_NOTRACE and LOGV2_CONTINUE to have different behavior.
Diffstat (limited to 'src/mongo/rpc/op_msg.cpp')
-rw-r--r--src/mongo/rpc/op_msg.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/rpc/op_msg.cpp b/src/mongo/rpc/op_msg.cpp
index 0ca4f491014..d29b5ac2578 100644
--- a/src/mongo/rpc/op_msg.cpp
+++ b/src/mongo/rpc/op_msg.cpp
@@ -297,12 +297,11 @@ Message OpMsgBuilder::finish() {
std::set<StringData> seenFields;
for (auto elem : resumeBody().asTempObj()) {
if (!(seenFields.insert(elem.fieldNameStringData()).second)) {
- LOGV2_FATAL(22633,
+ LOGV2_FATAL(40474,
"OP_MSG with duplicate field '{elem_fieldNameStringData}' : "
"{resumeBody_asTempObj}",
"elem_fieldNameStringData"_attr = elem.fieldNameStringData(),
"resumeBody_asTempObj"_attr = redact(resumeBody().asTempObj()));
- fassert(40474, false);
}
}
}