summaryrefslogtreecommitdiff
path: root/src/mongo/db/s
diff options
context:
space:
mode:
authorSophia Tan <sophia_tll@hotmail.com>2022-05-18 19:41:20 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-05-19 18:19:03 +0000
commitb065a3b04ab6c14b7a695f0c3f97eaa81b202a36 (patch)
treeaacf818dfbefcc6953a9db5da6db6b0ac54983a5 /src/mongo/db/s
parenteb90659062d8ac2dfd629b5d672c67423bddaa6a (diff)
downloadmongo-b065a3b04ab6c14b7a695f0c3f97eaa81b202a36.tar.gz
SERVER-63109 Change CollectionCatalog::_databaseProfileSettings to be keyed by DatabaseName
Diffstat (limited to 'src/mongo/db/s')
-rw-r--r--src/mongo/db/s/shardsvr_collmod_command.cpp2
-rw-r--r--src/mongo/db/s/shardsvr_drop_collection_command.cpp2
-rw-r--r--src/mongo/db/s/shardsvr_drop_database_command.cpp2
-rw-r--r--src/mongo/db/s/shardsvr_drop_indexes_command.cpp2
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());