Skip to content

Fix list all Indexes for a Database 3.6.1 #3168

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 25 additions & 11 deletions source/release-notes/3.6-compatibility.txt
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,16 @@ Arbiter and Priority

.. include:: /includes/fact-arbiter-priority.rst

Deprecate Master-Slave Replication
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

MongoDB 3.6 deprecates master-slave replication.

``--nojournal`` Option with WiredTiger
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. include:: /includes/wiredtiger-node-nojournal.rst

.. _aggregate-compatibility:

``aggregate`` Command and Results
Expand Down Expand Up @@ -420,17 +430,6 @@ For more information on the validate operation, see the
:dbcommand:`validate` command and the
:method:`db.collection.validate()` method.


``--nojournal`` Option with WiredTiger
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. include:: /includes/wiredtiger-node-nojournal.rst

Deprecate Master-Slave Replication
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

MongoDB 3.6 deprecates master-slave replication.

.. _3.6-index-asterisk:

Indexes Named ``*``
Expand All @@ -443,6 +442,21 @@ index keys.
To delete existing indexes named ``*``, delete the index before
upgrading. To rename them, delete and recreate the index.

.. _3.6-deprecated-options:

Deprecated Options
~~~~~~~~~~~~~~~~~~

.. versionchanged:: 3.6.1

- MongoDB 3.6.1 deprecates the ``snapshot`` query option. You can use
:method:`~cursor.hint()` on the ``{ _id: 1}`` index instead to
prevent a cursor from returning a document more than once if an
intervening write operation results in a move of the document.

- MongoDB 3.6.1 deprecates the ``$isolated`` option. For more
information on read isolation, see
:doc:`/core/read-isolation-consistency-recency`.

.. _3.6-compatibility-enabled:

Expand Down
2 changes: 1 addition & 1 deletion source/tutorial/manage-indexes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ can use the following operation in the :program:`mongo` shell:
.. code-block:: javascript

db.getCollectionNames().forEach(function(collection) {
indexes = db[collection].getIndexes();
indexes = db.getCollection(collection).getIndexes();
print("Indexes for " + collection + ":");
printjson(indexes);
});
Expand Down