summaryrefslogtreecommitdiff
path: root/src/mongo/db/instance.cpp
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2016-03-30 14:23:30 -0400
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2016-03-30 16:47:02 -0400
commite45aba42f783cf2e2974b7ea6944a6c81b0a6be4 (patch)
treec15fc1c8be8aaeead074ede66ea695847464c794 /src/mongo/db/instance.cpp
parent2a09ba86b4812c37ea167328dbf528bd1c245b4e (diff)
downloadmongo-e45aba42f783cf2e2974b7ea6944a6c81b0a6be4.tar.gz
SERVER-23434 Make find and getMore return InvalidNamespace on bad namespaces
Diffstat (limited to 'src/mongo/db/instance.cpp')
-rw-r--r--src/mongo/db/instance.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/instance.cpp b/src/mongo/db/instance.cpp
index 3e837b801a9..d3cac033950 100644
--- a/src/mongo/db/instance.cpp
+++ b/src/mongo/db/instance.cpp
@@ -915,7 +915,9 @@ bool receivedGetMore(OperationContext* txn, DbResponse& dbresponse, Message& m,
try {
const NamespaceString nsString(ns);
- uassert(16258, str::stream() << "Invalid ns [" << ns << "]", nsString.isValid());
+ uassert(ErrorCodes::InvalidNamespace,
+ str::stream() << "Invalid ns [" << ns << "]",
+ nsString.isValid());
Status status = AuthorizationSession::get(txn->getClient())
->checkAuthForGetMore(nsString, cursorid, false);