diff options
Diffstat (limited to 'src/mongo/db/s')
4 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/s/shardsvr_collmod_command.cpp b/src/mongo/db/s/shardsvr_collmod_command.cpp index 26065c6aa72..fda9b426f4a 100644 --- a/src/mongo/db/s/shardsvr_collmod_command.cpp +++ b/src/mongo/db/s/shardsvr_collmod_command.cpp @@ -110,7 +110,7 @@ public: // profile level increase in order to be logged in "<db>.system.profile" const auto& cmd = requestParser.request(); CurOp::get(opCtx)->raiseDbProfileLevel( - CollectionCatalog::get(opCtx)->getDatabaseProfileLevel(cmd.getDbName())); + CollectionCatalog::get(opCtx)->getDatabaseProfileLevel(cmd.getNamespace().dbName())); boost::optional<FixedFCVRegion> fcvRegion; fcvRegion.emplace(opCtx); diff --git a/src/mongo/db/s/shardsvr_drop_collection_command.cpp b/src/mongo/db/s/shardsvr_drop_collection_command.cpp index 55d9d096121..9e7954b2d56 100644 --- a/src/mongo/db/s/shardsvr_drop_collection_command.cpp +++ b/src/mongo/db/s/shardsvr_drop_collection_command.cpp @@ -94,7 +94,7 @@ public: // Since this operation is not directly writing locally we need to force its db // profile level increase in order to be logged in "<db>.system.profile" CurOp::get(opCtx)->raiseDbProfileLevel( - CollectionCatalog::get(opCtx)->getDatabaseProfileLevel(targetNs.db())); + CollectionCatalog::get(opCtx)->getDatabaseProfileLevel(targetNs.dbName())); auto coordinatorDoc = DropCollectionCoordinatorDocument(); coordinatorDoc.setShardingDDLCoordinatorMetadata( diff --git a/src/mongo/db/s/shardsvr_drop_database_command.cpp b/src/mongo/db/s/shardsvr_drop_database_command.cpp index 78b6941017c..7f1321f6718 100644 --- a/src/mongo/db/s/shardsvr_drop_database_command.cpp +++ b/src/mongo/db/s/shardsvr_drop_database_command.cpp @@ -79,7 +79,7 @@ public: // Since this operation is not directly writing locally we need to force its db // profile level increase in order to be logged in "<db>.system.profile" CurOp::get(opCtx)->raiseDbProfileLevel( - CollectionCatalog::get(opCtx)->getDatabaseProfileLevel(request().getDbName())); + CollectionCatalog::get(opCtx)->getDatabaseProfileLevel(ns().dbName())); auto coordinatorDoc = DropDatabaseCoordinatorDocument(); coordinatorDoc.setShardingDDLCoordinatorMetadata( diff --git a/src/mongo/db/s/shardsvr_drop_indexes_command.cpp b/src/mongo/db/s/shardsvr_drop_indexes_command.cpp index dbaa2d591da..acbb42422b9 100644 --- a/src/mongo/db/s/shardsvr_drop_indexes_command.cpp +++ b/src/mongo/db/s/shardsvr_drop_indexes_command.cpp @@ -138,7 +138,7 @@ ShardsvrDropIndexesCommand::Invocation::Response ShardsvrDropIndexesCommand::Inv // Since this operation is not directly writing locally we need to force its db profile level // increase in order to be logged in "<db>.system.profile". CurOp::get(opCtx)->raiseDbProfileLevel( - CollectionCatalog::get(opCtx)->getDatabaseProfileLevel(ns().db())); + CollectionCatalog::get(opCtx)->getDatabaseProfileLevel(ns().dbName())); DropIndexes dropIdxCmd(ns()); dropIdxCmd.setDropIndexesRequest(request().getDropIndexesRequest()); |