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
17 changes: 17 additions & 0 deletions source/reference/command/validate.txt
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,23 @@ Specify :ref:`full: true <cmd-validate-full>` for more detailed output.

*Available starting in MongoDB 4.2 (and 4.0.10+ and 3.6.13+)*

.. data:: validate.corruptRecords

An array of ``RecordId`` values for documents that are unreadable,
possibly because the data is damaged. These documents are reported as
corrupt during validation. A ``RecordId`` is a 64-bit integer
internal key that uniquely identifies a document in a collection.

.. code-block:: javascript
:copyable: false

"corruptRecords" : [
NumberLong(1), // RecordId 1
NumberLong(2) // RecordId 2
]

.. versionadded:: 4.4.7

.. data:: validate.ok

An integer with the value ``1`` when the command succeeds. If the
Expand Down
15 changes: 15 additions & 0 deletions source/reference/parameters.txt
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,21 @@ Authentication Parameters
start-up, and cannot change this setting with the
:dbcommand:`setParameter` database command.

.. parameter:: maxValidateMemoryUsageMB

.. versionadded:: 4.4.7

*Default*: 200

The maximum memory usage limit in megabytes for the
:dbcommand:`validate` command. If the limit is exceeded,
:dbcommand:`validate` returns as many results as possible and warns
that not all corruption might be reported because of the limit.

You can set :parameter:`maxValidateMemoryUsageMB` during startup, and
can change this setting using the :dbcommand:`setParameter` database
command.

.. parameter:: ocspEnabled

.. versionadded:: 4.4
Expand Down