Skip to content
Merged
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
8 changes: 0 additions & 8 deletions source/reference/method.txt
Original file line number Diff line number Diff line change
Expand Up @@ -429,10 +429,6 @@ Database

- Removes the current database.

* - :method:`db.eval()`

- Deprecated. Passes a JavaScript function for server-side JavaScript evaluation when run against MongoDB 4.0 or earlier. Unsupported when run against MongoDB 4.2 or later.

* - :method:`db.fsyncLock()`

- Flushes writes to disk and locks the database to prevent write operations and assist backup operations. Wraps :dbcommand:`fsync`.
Expand Down Expand Up @@ -473,10 +469,6 @@ Database

- Returns the name of the current database.

* - :method:`db.getProfilingLevel()`

- Returns the current profiling level for database operations.

* - :method:`db.getProfilingStatus()`

- Returns a document that reflects the current profiling level and the profiling threshold.
Expand Down
77 changes: 0 additions & 77 deletions source/reference/method/db.eval.txt

This file was deleted.

20 changes: 0 additions & 20 deletions source/reference/method/db.getProfilingLevel.txt

This file was deleted.

10 changes: 0 additions & 10 deletions source/reference/method/js-database.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ Database Methods

- Removes the current database.

* - :method:`db.eval()`

- Deprecated. Passes a JavaScript function for server-side JavaScript evaluation when run against MongoDB 4.0 or earlier. Unsupported when run against MongoDB 4.2 or later.

* - :method:`db.fsyncLock()`

- Flushes writes to disk and locks the database to prevent write operations and assist backup operations. Wraps :dbcommand:`fsync`.
Expand Down Expand Up @@ -100,10 +96,6 @@ Database Methods

- Returns the name of the current database.

* - :method:`db.getProfilingLevel()`

- Returns the current profiling level for database operations.

* - :method:`db.getProfilingStatus()`

- Returns a document that reflects the current profiling level and the profiling threshold.
Expand Down Expand Up @@ -223,7 +215,6 @@ Database Methods
/reference/method/db.createView
/reference/method/db.currentOp
/reference/method/db.dropDatabase
/reference/method/db.eval
/reference/method/db.fsyncLock
/reference/method/db.fsyncUnlock
/reference/method/db.getCollection
Expand All @@ -234,7 +225,6 @@ Database Methods
/reference/method/db.getLogComponents
/reference/method/db.getMongo
/reference/method/db.getName
/reference/method/db.getProfilingLevel
/reference/method/db.getProfilingStatus
/reference/method/db.getReplicationInfo
/reference/method/db.getSiblingDB
Expand Down
2 changes: 1 addition & 1 deletion source/release-notes/1.8.txt
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ Additional Changes and Enhancements

- :update:`$rename` operator allows renaming of fields in a document.

- :method:`db.eval()` not to block.
- ``db.eval()`` not to block.

- Geo queries with sharding.

Expand Down
6 changes: 3 additions & 3 deletions source/release-notes/3.0-compatibility.txt
Original file line number Diff line number Diff line change
Expand Up @@ -543,13 +543,13 @@ The following commands and methods are deprecated in MongoDB 3.0:

- :dbcommand:`diagLogging`

- ``eval``, :method:`db.eval()`
- ``eval``, ``db.eval()``

- :method:`db.collection.copyTo()`

In addition, you cannot use the now deprecated ``eval``
command or the :method:`db.eval()` method to invoke
:dbcommand:`mapReduce` or :method:`db.collection.mapReduce()`.
command or the ``db.eval()`` method to invoke :dbcommand:`mapReduce` or
:method:`db.collection.mapReduce()`.

.. _3.0-date-timestamp:

Expand Down
2 changes: 1 addition & 1 deletion source/release-notes/3.0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ Issues fixed:

Issues fixed:

- Deprecate :method:`db.eval()` and add warnings:
- Deprecate ``db.eval()`` and add warnings:
:issue:`SERVER-17453`

- Potential for abrupt termination with the Windows service stop
Expand Down
8 changes: 4 additions & 4 deletions source/release-notes/4.2-compatibility.txt
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@ stage instead.
Remove Support for the ``eval`` Command
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Starting in version 4.2, MongoDB removes the ``eval`` command. ``eval``
command has been deprecated since version 3.0.
Starting in version 4.2, MongoDB removes the ``eval`` command. The
``eval`` command has been deprecated since version 3.0.

The associated MongoDB 4.2 :binary:`~bin.mongo` shell methods
:method:`db.eval()` and :method:`db.collection.copyTo()` can only be
run when connected to MongoDB 4.0 or earlier.
``db.eval()`` and :method:`db.collection.copyTo()` can only be run when
connected to MongoDB 4.0 or earlier.

.. _4.2-compat-remove-copydb-clone:

Expand Down
6 changes: 3 additions & 3 deletions source/release-notes/4.2.txt
Original file line number Diff line number Diff line change
Expand Up @@ -483,9 +483,9 @@ Removed Commands and Methods

-

- The MongoDB 4.2 :binary:`~bin.mongo` shell methods
:method:`db.eval()` and :method:`db.collection.copyTo()` can
only be run when connected to MongoDB 4.0 or earlier.
- The MongoDB 4.2 :binary:`~bin.mongo` shell methods ``db.eval()``
and :method:`db.collection.copyTo()` can only be run when
connected to MongoDB 4.0 or earlier.


* - ``copydb``
Expand Down
7 changes: 0 additions & 7 deletions source/tutorial/manage-the-database-profiler.txt
Original file line number Diff line number Diff line change
Expand Up @@ -280,13 +280,6 @@ milliseconds, beyond which operations are considered *slow*.
The ``sampleRate`` field indicates the percentage of *slow* operations
that should be profiled.

To return only the profiling level, use the
:method:`db.getProfilingLevel()` helper in the :binary:`~bin.mongo` shell as in the following:

.. code-block:: javascript

db.getProfilingLevel()

Disable Profiling
~~~~~~~~~~~~~~~~~

Expand Down