Skip to content

Commit 825d21a

Browse files
mungitoperritojeff-allen-mongo
authored andcommitted
DOCSP-15852 remove obsolte pages db.eval db.getProfilingLevel
1 parent 7b0475f commit 825d21a

File tree

10 files changed

+12
-134
lines changed

10 files changed

+12
-134
lines changed

source/reference/method.txt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -429,10 +429,6 @@ Database
429429

430430
- Removes the current database.
431431

432-
* - :method:`db.eval()`
433-
434-
- 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.
435-
436432
* - :method:`db.fsyncLock()`
437433

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

474470
- Returns the name of the current database.
475471

476-
* - :method:`db.getProfilingLevel()`
477-
478-
- Returns the current profiling level for database operations.
479-
480472
* - :method:`db.getProfilingStatus()`
481473

482474
- Returns a document that reflects the current profiling level and the profiling threshold.

source/reference/method/db.eval.txt

Lines changed: 0 additions & 77 deletions
This file was deleted.

source/reference/method/db.getProfilingLevel.txt

Lines changed: 0 additions & 20 deletions
This file was deleted.

source/reference/method/js-database.txt

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,6 @@ Database Methods
5656

5757
- Removes the current database.
5858

59-
* - :method:`db.eval()`
60-
61-
- 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.
62-
6359
* - :method:`db.fsyncLock()`
6460

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

10197
- Returns the name of the current database.
10298

103-
* - :method:`db.getProfilingLevel()`
104-
105-
- Returns the current profiling level for database operations.
106-
10799
* - :method:`db.getProfilingStatus()`
108100

109101
- Returns a document that reflects the current profiling level and the profiling threshold.
@@ -223,7 +215,6 @@ Database Methods
223215
/reference/method/db.createView
224216
/reference/method/db.currentOp
225217
/reference/method/db.dropDatabase
226-
/reference/method/db.eval
227218
/reference/method/db.fsyncLock
228219
/reference/method/db.fsyncUnlock
229220
/reference/method/db.getCollection
@@ -234,7 +225,6 @@ Database Methods
234225
/reference/method/db.getLogComponents
235226
/reference/method/db.getMongo
236227
/reference/method/db.getName
237-
/reference/method/db.getProfilingLevel
238228
/reference/method/db.getProfilingStatus
239229
/reference/method/db.getReplicationInfo
240230
/reference/method/db.getSiblingDB

source/release-notes/1.8.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ Additional Changes and Enhancements
342342

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

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

347347
- Geo queries with sharding.
348348

source/release-notes/3.0-compatibility.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -543,13 +543,13 @@ The following commands and methods are deprecated in MongoDB 3.0:
543543

544544
- :dbcommand:`diagLogging`
545545

546-
- ``eval``, :method:`db.eval()`
546+
- ``eval``, ``db.eval()``
547547

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

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

554554
.. _3.0-date-timestamp:
555555

source/release-notes/3.0.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ Issues fixed:
255255

256256
Issues fixed:
257257

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

261261
- Potential for abrupt termination with the Windows service stop

source/release-notes/4.2-compatibility.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,12 @@ stage instead.
8989
Remove Support for the ``eval`` Command
9090
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
9191

92-
Starting in version 4.2, MongoDB removes the ``eval`` command. ``eval``
93-
command has been deprecated since version 3.0.
92+
Starting in version 4.2, MongoDB removes the ``eval`` command. The
93+
``eval`` command has been deprecated since version 3.0.
9494

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

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

source/release-notes/4.2.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -483,9 +483,9 @@ Removed Commands and Methods
483483

484484
-
485485

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

490490

491491
* - ``copydb``

source/tutorial/manage-the-database-profiler.txt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -280,13 +280,6 @@ milliseconds, beyond which operations are considered *slow*.
280280
The ``sampleRate`` field indicates the percentage of *slow* operations
281281
that should be profiled.
282282

283-
To return only the profiling level, use the
284-
:method:`db.getProfilingLevel()` helper in the :binary:`~bin.mongo` shell as in the following:
285-
286-
.. code-block:: javascript
287-
288-
db.getProfilingLevel()
289-
290283
Disable Profiling
291284
~~~~~~~~~~~~~~~~~
292285

0 commit comments

Comments
 (0)