diff options
author | Sophia Tan <sophia_tll@hotmail.com> | 2023-03-31 14:53:00 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-03-31 18:09:52 +0000 |
commit | 4aca733ab5d78dc6a7bea3fc91897bc93a8b0756 (patch) | |
tree | 6c02a6370d3fdb7de76f7af1f5fb4e5f11bc14e4 /src/mongo/db/commands/fle2_compact_cmd.cpp | |
parent | a775740469e0057b8fbefd957d3b48d0327298cf (diff) | |
download | mongo-4aca733ab5d78dc6a7bea3fc91897bc93a8b0756.tar.gz |
SERVER-74487 Always include tenant in db name attributes in error messages
Diffstat (limited to 'src/mongo/db/commands/fle2_compact_cmd.cpp')
-rw-r--r-- | src/mongo/db/commands/fle2_compact_cmd.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/commands/fle2_compact_cmd.cpp b/src/mongo/db/commands/fle2_compact_cmd.cpp index 4e3d1845619..42345380a17 100644 --- a/src/mongo/db/commands/fle2_compact_cmd.cpp +++ b/src/mongo/db/commands/fle2_compact_cmd.cpp @@ -80,7 +80,8 @@ CompactStats compactEncryptedCompactionCollection(OperationContext* opCtx, AutoGetDb autoDb(opCtx, edcNss.dbName(), MODE_IX); uassert(ErrorCodes::NamespaceNotFound, - str::stream() << "Database '" << edcNss.db() << "' does not exist", + str::stream() << "Database '" << edcNss.dbName().toStringForErrorMsg() + << "' does not exist", autoDb.getDb()); auto catalog = CollectionCatalog::get(opCtx); |