summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamran Khan <kamran.khan@mongodb.com>2014-04-03 11:58:46 -0400
committerMatt Kangas <matt.kangas@mongodb.com>2014-04-09 18:40:07 -0400
commita9587732dc24b220ad687c06205da9e20906ab45 (patch)
treec25317e2e8c91e15c2f44c8215d73290f81a8ec5
parentba1b569cd99ea2b2639b5a0374ee355af9e378a9 (diff)
downloadmongo-a9587732dc24b220ad687c06205da9e20906ab45.tar.gz
SERVER-13466 Use correct namespace in write error when collection creation fails
Signed-off-by: Matt Kangas <matt.kangas@mongodb.com> (cherry picked from commit 56136a9d8f165fe9ec74bb4928404206ce63610f)
-rw-r--r--src/mongo/db/commands/write_commands/batch_executor.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/commands/write_commands/batch_executor.cpp b/src/mongo/db/commands/write_commands/batch_executor.cpp
index 171d68227c4..1d86f1e87d0 100644
--- a/src/mongo/db/commands/write_commands/batch_executor.cpp
+++ b/src/mongo/db/commands/write_commands/batch_executor.cpp
@@ -941,7 +941,8 @@ namespace mongo {
if (!_collection) {
result->setError(
toWriteError(Status(ErrorCodes::InternalError,
- "could not create collection " + request->getNS())));
+ "could not create collection " +
+ request->getTargetingNS())));
return false;
}
}