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.
6868 :dbcommand:`renameCollection` command create an
6969 :ref:`change-event-invalidate` for any existing
7070 :doc:`/changeStreams` opened on the source or target collection.
71-
71+
7272- The method has the following limitations:
7373
7474 - :method:`db.collection.renameCollection()` cannot move a collection
@@ -83,6 +83,9 @@ warnings and messages.
8383 - :method:`db.collection.renameCollection()` is not supported on
8484 :term:`time series collections <time series collection>`.
8585
86+ - You cannot rename a collection to itself. If you try to rename a
87+ collection to itself an ``IllegalOperation`` error is thrown.
88+
8689Resource Locking in Sharded Clusters
8790~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8891
You can’t perform that action at this time.
0 commit comments