diff options
Diffstat (limited to 'src/mongo/db/commands/fle2_compact_cmd.cpp')
-rw-r--r-- | src/mongo/db/commands/fle2_compact_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/commands/fle2_compact_cmd.cpp b/src/mongo/db/commands/fle2_compact_cmd.cpp index 18fe1fc6eef..1867f50ad78 100644 --- a/src/mongo/db/commands/fle2_compact_cmd.cpp +++ b/src/mongo/db/commands/fle2_compact_cmd.cpp @@ -71,7 +71,7 @@ CompactStats compactEncryptedCompactionCollection(OperationContext* opCtx, LOGV2(6319900, "Compacting the encrypted compaction collection", "namespace"_attr = edcNss); - AutoGetDb autoDb(opCtx, edcNss.db(), MODE_IX); + AutoGetDb autoDb(opCtx, edcNss.dbName(), MODE_IX); uassert(ErrorCodes::NamespaceNotFound, str::stream() << "Database '" << edcNss.db() << "' does not exist", autoDb.getDb()); |