Skip to content

Commit 64e21f4

Browse files
npentreljeff-allen-mongo
authored andcommitted
DOCS-14469: Address rename behaviour
1 parent 981c750 commit 64e21f4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

source/reference/method/db.collection.renameCollection.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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+
8689
Resource Locking in Sharded Clusters
8790
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8891

0 commit comments

Comments
 (0)