From 082f63150e0a8914ba2a564fee757f6ca0fd1804 Mon Sep 17 00:00:00 2001 From: Sviatlana Zuiko Date: Mon, 27 Mar 2023 18:11:39 +0000 Subject: Revert "SERVER-74487 Always include tenant in db name attributes in error messages" This reverts commit 08a15c3313eaa0335e5567000ff187fbb81f8668. --- src/mongo/s/stale_shard_version_helpers.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/mongo/s/stale_shard_version_helpers.cpp') 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::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()); -- cgit v1.2.1