diff options
Diffstat (limited to 'src/mongo/s/write_ops/batched_update_request.cpp')
-rw-r--r-- | src/mongo/s/write_ops/batched_update_request.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/s/write_ops/batched_update_request.cpp b/src/mongo/s/write_ops/batched_update_request.cpp index e35bd3678d1..3c7f4fe9664 100644 --- a/src/mongo/s/write_ops/batched_update_request.cpp +++ b/src/mongo/s/write_ops/batched_update_request.cpp @@ -122,6 +122,9 @@ bool BatchedUpdateRequest::parseBSON(StringData dbName, const BSONObj& source, s if (fieldState == FieldParser::FIELD_INVALID) return false; _ns = NamespaceString(dbName, collNameTemp); + uassert(ErrorCodes::InvalidNamespace, + str::stream() << "Invalid namespace: " << _ns.ns(), + _ns.isValid()); _isNSSet = fieldState == FieldParser::FIELD_SET; } else if (fieldName == updates.name()) { fieldState = FieldParser::extract(elem, updates, &_updates, errMsg); |