summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/dbcheck.idl
diff options
context:
space:
mode:
authorLouis Williams <louis.williams@mongodb.com>2021-12-22 19:08:59 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-12-22 19:38:30 +0000
commit0e0bdb41cf80cfa3e151b3aba3a5ebb77714c06e (patch)
treec7c6d15cc635fd873252ecc7d6a991787a372c57 /src/mongo/db/repl/dbcheck.idl
parentf114b2857bac3830436df4c319fd2cb562a1ff1b (diff)
downloadmongo-0e0bdb41cf80cfa3e151b3aba3a5ebb77714c06e.tar.gz
SERVER-62212 Support writeConcern for dbCheck batches
The dbCheck command accepts a `batchWriteConcern` option in the form of a writeConcern document. The default behavior is w:1 with no wtimeout.
Diffstat (limited to 'src/mongo/db/repl/dbcheck.idl')
-rw-r--r--src/mongo/db/repl/dbcheck.idl9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mongo/db/repl/dbcheck.idl b/src/mongo/db/repl/dbcheck.idl
index 48e71f32c31..8246c46e70d 100644
--- a/src/mongo/db/repl/dbcheck.idl
+++ b/src/mongo/db/repl/dbcheck.idl
@@ -35,6 +35,7 @@ global:
imports:
- "mongo/idl/basic_types.idl"
+ - "mongo/db/write_concern_options.idl"
server_parameters:
dbCheckCollectionTryLockTimeoutMillis:
@@ -144,6 +145,10 @@ structs:
snapshotRead:
type: safeBool
default: true
+ batchWriteConcern:
+ description: Wait for this writeConcern at the end of every batch. Default is w:1 with no timeout.
+ type: WriteConcern
+ default: WriteConcernOptions()
DbCheckAllInvocation:
description: "Command object for database-wide form of dbCheck invocation"
@@ -175,6 +180,10 @@ structs:
snapshotRead:
type: safeBool
default: true
+ batchWriteConcern:
+ description: Wait for this writeConcern at the end of every batch. Default is w:1 with no timeout.
+ type: WriteConcern
+ default: WriteConcernOptions()
DbCheckOplogBatch:
description: "Oplog entry for a dbCheck batch"