From c1a1f2c11c7721fb1aaadd4c76e72e0b95be18c2 Mon Sep 17 00:00:00 2001 From: zhenyipeng Date: Sun, 12 Sep 2021 15:21:09 +0800 Subject: [PATCH] DOCS-14789: Add maxTimeMS for cluster write commands --- source/reference/command/delete.txt | 10 ++++++++++ source/reference/command/insert.txt | 12 +++++++++++- source/reference/command/update.txt | 10 ++++++++++ 3 files changed, 31 insertions(+), 1 deletion(-) diff --git a/source/reference/command/delete.txt b/source/reference/command/delete.txt index 5f034783b0d..d5abb779caa 100644 --- a/source/reference/command/delete.txt +++ b/source/reference/command/delete.txt @@ -43,6 +43,7 @@ Definition ], ordered: , writeConcern: { }, + maxTimeMS: , let: // Added in MongoDB 5.0 } @@ -114,6 +115,15 @@ Definition .. versionadded:: 4.4 + * - ``maxTimeMS`` + + - positive integer + + - Optional. The cumulative time limit in milliseconds for processing operations on + the cursor. MongoDB aborts the operation at the earliest following + :term:`interrupt point`. + + *Supported on mongos since MongoDB 5.0, only supported on mongod in previous versions. * - :ref:`let ` diff --git a/source/reference/command/insert.txt b/source/reference/command/insert.txt index ed2f154b96d..6aadf403ae0 100644 --- a/source/reference/command/insert.txt +++ b/source/reference/command/insert.txt @@ -29,7 +29,8 @@ Definition ordered: , writeConcern: { }, bypassDocumentValidation: , - comment: + comment: , + maxTimeMS: } The :dbcommand:`insert` command takes the following fields: @@ -103,6 +104,15 @@ Definition .. versionadded:: 4.4 + * - ``maxTimeMS`` + + - positive integer + + - Optional. The cumulative time limit in milliseconds for processing operations on + the cursor. MongoDB aborts the operation at the earliest following + :term:`interrupt point`. + + *Supported on mongos since MongoDB 5.0, only supported on mongod in previous versions. :returns: diff --git a/source/reference/command/update.txt b/source/reference/command/update.txt index 9d32e6786bd..43ae88df1e5 100644 --- a/source/reference/command/update.txt +++ b/source/reference/command/update.txt @@ -59,6 +59,7 @@ The :dbcommand:`update` command has the following syntax: writeConcern: { }, bypassDocumentValidation: , comment: , + maxTimeMS: , let: // Added in MongoDB 5.0 } ) @@ -139,6 +140,15 @@ The command takes the following fields: .. versionadded:: 4.4 + * - ``maxTimeMS`` + + - positive integer + + - Optional. The cumulative time limit in milliseconds for processing operations on + the cursor. MongoDB aborts the operation at the earliest following + :term:`interrupt point`. + + *Supported on mongos since MongoDB 5.0, only supported on mongod in previous versions. * - :ref:`let `