diff options
author | Antonio Fuschetto <antonio.fuschetto@mongodb.com> | 2023-01-25 12:12:28 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-01-25 12:47:22 +0000 |
commit | 209d4773b78a7894aaf44dc5a498427dc14eee30 (patch) | |
tree | 82a7395db8c03d849b235d08d70dc8dae6a53444 /src/mongo/db/commands | |
parent | 4017f1973070f9f0065f2e29353b7b6dc8991c1e (diff) | |
download | mongo-209d4773b78a7894aaf44dc5a498427dc14eee30.tar.gz |
SERVER-72869 Push the database metadata from the Storage Catalog back to the Database Sharding State
Diffstat (limited to 'src/mongo/db/commands')
-rw-r--r-- | src/mongo/db/commands/internal_rename_if_options_and_indexes_match_cmd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/commands/internal_rename_if_options_and_indexes_match_cmd.cpp b/src/mongo/db/commands/internal_rename_if_options_and_indexes_match_cmd.cpp index b9121334588..fa09b571c2d 100644 --- a/src/mongo/db/commands/internal_rename_if_options_and_indexes_match_cmd.cpp +++ b/src/mongo/db/commands/internal_rename_if_options_and_indexes_match_cmd.cpp @@ -28,12 +28,12 @@ */ #include "mongo/db/auth/authorization_session.h" -#include "mongo/db/catalog/catalog_helper.h" #include "mongo/db/catalog/rename_collection.h" #include "mongo/db/commands.h" #include "mongo/db/commands/internal_rename_if_options_and_indexes_match_gen.h" #include "mongo/db/db_raii.h" #include "mongo/db/s/collection_sharding_state.h" +#include "mongo/db/s/database_sharding_state.h" #include "mongo/db/s/ddl_lock_manager.h" namespace mongo { @@ -78,7 +78,7 @@ public: } // Check if the receiving shard is still the primary for the database - catalog_helper::assertIsPrimaryShardForDb(opCtx, fromNss.db()); + DatabaseShardingState::assertIsPrimaryShardForDb(opCtx, fromNss.db()); // Acquiring the local part of the distributed locks for involved namespaces allows: // - Serialize with sharded DDLs, ensuring no concurrent modifications of the |