summaryrefslogtreecommitdiff
path: root/src/mongo/db/shard_role.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/shard_role.cpp')
-rw-r--r--src/mongo/db/shard_role.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/db/shard_role.cpp b/src/mongo/db/shard_role.cpp
index f6145574a39..0334bad3d13 100644
--- a/src/mongo/db/shard_role.cpp
+++ b/src/mongo/db/shard_role.cpp
@@ -470,8 +470,7 @@ std::vector<ScopedCollectionOrViewAcquisition> acquireCollectionsOrViews(
tassert(7300400,
str::stream()
<< "Cannot acquire locks for collections across different databases ('"
- << dbName.toStringForErrorMsg() << "' vs '"
- << nss.dbName().toStringForErrorMsg() << "'",
+ << dbName << "' vs '" << nss.dbName() << "'",
dbName == nss.dbName());
ar.second.dbLock = dbLock;