summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/config/sharding_catalog_manager.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/s/config/sharding_catalog_manager.h')
-rw-r--r--src/mongo/db/s/config/sharding_catalog_manager.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mongo/db/s/config/sharding_catalog_manager.h b/src/mongo/db/s/config/sharding_catalog_manager.h
index c1ac1602848..c710902aa0e 100644
--- a/src/mongo/db/s/config/sharding_catalog_manager.h
+++ b/src/mongo/db/s/config/sharding_catalog_manager.h
@@ -463,6 +463,17 @@ public:
*/
void downgradeMetadataToPre50Phase2(OperationContext* opCtx);
+ /*
+ * Rename collection metadata as part of a renameCollection operation.
+ *
+ * - Updates the FROM collection entry if the source collection is sharded
+ * - Removes the TO collection entry if the target collection was sharded
+ */
+ void renameShardedMetadata(OperationContext* opCtx,
+ const NamespaceString& from,
+ const NamespaceString& to,
+ boost::optional<CollectionType> optFromCollType);
+
//
// For Diagnostics
//