diff options
Diffstat (limited to 'src/mongo/s/stale_shard_version_helpers.cpp')
-rw-r--r-- | src/mongo/s/stale_shard_version_helpers.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/s/stale_shard_version_helpers.cpp b/src/mongo/s/stale_shard_version_helpers.cpp index aad9bf091ad..f1a45a3d409 100644 --- a/src/mongo/s/stale_shard_version_helpers.cpp +++ b/src/mongo/s/stale_shard_version_helpers.cpp @@ -66,8 +66,7 @@ void checkErrorStatusAndMaxRetries(const Status& status, error_details::ErrorExtraInfoForImpl<ErrorCodes::StaleDbVersion>::type>(); invariant(staleInfo->getDb() == nss.db(), str::stream() << "StaleDbVersion error on unexpected database. Expected " - << nss.dbName().toStringForErrorMsg() << ", received " - << staleInfo->getDb()); + << nss.db() << ", received " << staleInfo->getDb()); // If the database version is stale, refresh its entry in the catalog cache. catalogCache->onStaleDatabaseVersion(staleInfo->getDb(), staleInfo->getVersionWanted()); |