diff options
author | Matt Broadstone <mbroadst@mongodb.com> | 2022-01-13 16:53:46 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-01-13 17:55:20 +0000 |
commit | b6fbd70e98fd67b2ca9f3295fd5b8dc3ee29d392 (patch) | |
tree | 669a5c4920a00f313979bf114003bf380ab6b394 /src/mongo/idl/basic_types.idl | |
parent | 2b89e0db3591619b8c736f84ca743b29bad9776a (diff) | |
download | mongo-b6fbd70e98fd67b2ca9f3295fd5b8dc3ee29d392.tar.gz |
SERVER-62422 Consolidate WriteConcernOptions parsing logic
Diffstat (limited to 'src/mongo/idl/basic_types.idl')
-rw-r--r-- | src/mongo/idl/basic_types.idl | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/mongo/idl/basic_types.idl b/src/mongo/idl/basic_types.idl index bcad7f9a0e5..ae3041063cd 100644 --- a/src/mongo/idl/basic_types.idl +++ b/src/mongo/idl/basic_types.idl @@ -256,6 +256,14 @@ types: serializer: "mongo::WriteConcernW::serializeWriteConcernW" deserializer: "mongo::WriteConcernW::deserializeWriteConcernW" + writeConcernWTimeout: + bson_serialization_type: any + description: >- + An integer representing the 'wtimeout' option in a document specifying write concern. + See https://docs.mongodb.com/manual/reference/write-concern/" + cpp_type: std::int64_t + deserializer: "mongo::parseWTimeoutFromBSON" + enums: ReadWriteConcernProvenanceSource: description: "Provenance sources" @@ -348,7 +356,7 @@ structs: optional: true unstable: false wtimeout: - type: safeInt64 + type: writeConcernWTimeout default: 0 unstable: false fsync: |