summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/fle2_compact_cmd.cpp
diff options
context:
space:
mode:
authorSviatlana Zuiko <sviatlana.zuiko@mongodb.com>2023-03-27 18:11:39 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-03-27 19:26:55 +0000
commit082f63150e0a8914ba2a564fee757f6ca0fd1804 (patch)
tree221a0f9a5b11ea72b63ec492fba4d3a2e7cfd4f4 /src/mongo/db/commands/fle2_compact_cmd.cpp
parent4aa720213126917b82d5380bc746eb209a5efd3f (diff)
downloadmongo-082f63150e0a8914ba2a564fee757f6ca0fd1804.tar.gz
Revert "SERVER-74487 Always include tenant in db name attributes in error messages"
This reverts commit 08a15c3313eaa0335e5567000ff187fbb81f8668.
Diffstat (limited to 'src/mongo/db/commands/fle2_compact_cmd.cpp')
-rw-r--r--src/mongo/db/commands/fle2_compact_cmd.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/db/commands/fle2_compact_cmd.cpp b/src/mongo/db/commands/fle2_compact_cmd.cpp
index f7b802cd369..56acba6f9f3 100644
--- a/src/mongo/db/commands/fle2_compact_cmd.cpp
+++ b/src/mongo/db/commands/fle2_compact_cmd.cpp
@@ -80,8 +80,7 @@ CompactStats compactEncryptedCompactionCollection(OperationContext* opCtx,
AutoGetDb autoDb(opCtx, edcNss.dbName(), MODE_IX);
uassert(ErrorCodes::NamespaceNotFound,
- str::stream() << "Database '" << edcNss.dbName().toStringForErrorMsg()
- << "' does not exist",
+ str::stream() << "Database '" << edcNss.db() << "' does not exist",
autoDb.getDb());
auto catalog = CollectionCatalog::get(opCtx);