File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ warnings and messages.
68
68
:dbcommand:`renameCollection` command create an
69
69
:ref:`change-event-invalidate` for any existing
70
70
:doc:`/changeStreams` opened on the source or target collection.
71
-
71
+
72
72
- The method has the following limitations:
73
73
74
74
- :method:`db.collection.renameCollection()` cannot move a collection
@@ -83,6 +83,9 @@ warnings and messages.
83
83
- :method:`db.collection.renameCollection()` is not supported on
84
84
:term:`time series collections <time series collection>`.
85
85
86
+ - You cannot rename a collection to itself. If you try to rename a
87
+ collection to itself an ``IllegalOperation`` error is thrown.
88
+
86
89
Resource Locking in Sharded Clusters
87
90
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
88
91
You can’t perform that action at this time.
0 commit comments