summaryrefslogtreecommitdiff
path: root/src/mongo/db
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db')
-rw-r--r--src/mongo/db/commands/drop_connections.idl1
-rw-r--r--src/mongo/db/commands/generic.idl1
-rw-r--r--src/mongo/db/commands/http_client.idl1
-rw-r--r--src/mongo/db/commands/internal_rename_if_options_and_indexes_match.idl1
-rw-r--r--src/mongo/db/commands/kill_operations.idl1
-rw-r--r--src/mongo/db/commands/map_reduce.idl1
-rw-r--r--src/mongo/db/commands/profile.idl1
-rw-r--r--src/mongo/db/commands/rename_collection.idl1
-rw-r--r--src/mongo/db/commands/resharding_test_commands.idl1
-rw-r--r--src/mongo/db/commands/resize_oplog.idl1
-rw-r--r--src/mongo/db/commands/rotate_certificates.idl1
-rw-r--r--src/mongo/db/commands/rwc_defaults_commands.idl2
-rw-r--r--src/mongo/db/commands/set_feature_compatibility_version.idl1
-rw-r--r--src/mongo/db/commands/set_index_commit_quorum.idl1
-rw-r--r--src/mongo/db/commands/shutdown.idl1
-rw-r--r--src/mongo/db/commands/tenant_migration_donor_cmds.idl3
-rw-r--r--src/mongo/db/commands/tenant_migration_recipient_cmds.idl2
-rw-r--r--src/mongo/db/commands/txn_two_phase_commit_cmds.idl2
-rw-r--r--src/mongo/db/commands/user_management_commands.idl19
-rw-r--r--src/mongo/db/commands/vote_commit_index_build.idl1
-rw-r--r--src/mongo/db/commands_test_example.idl3
-rw-r--r--src/mongo/db/free_mon/free_mon_commands.idl2
-rw-r--r--src/mongo/db/ops/find_and_modify_command.idl1
-rw-r--r--src/mongo/db/ops/write_ops.idl3
-rw-r--r--src/mongo/db/pipeline/aggregate_command.idl1
-rw-r--r--src/mongo/db/query/count_command.idl1
-rw-r--r--src/mongo/db/query/distinct_command.idl1
-rw-r--r--src/mongo/db/query/find_command.idl1
-rw-r--r--src/mongo/db/repl/repl_set_test_egress.idl1
-rw-r--r--src/mongo/db/s/add_shard_cmd.idl1
-rw-r--r--src/mongo/db/traffic_recorder.idl2
31 files changed, 60 insertions, 0 deletions
diff --git a/src/mongo/db/commands/drop_connections.idl b/src/mongo/db/commands/drop_connections.idl
index 57938b565f5..e84a2e460c8 100644
--- a/src/mongo/db/commands/drop_connections.idl
+++ b/src/mongo/db/commands/drop_connections.idl
@@ -40,6 +40,7 @@ commands:
description: "An administrative command which takes a list of host and ports and drops pooled connections to them"
command_name: dropConnections
namespace: ignored
+ api_version: ""
fields:
hostAndPort:
description: "List of host and ports"
diff --git a/src/mongo/db/commands/generic.idl b/src/mongo/db/commands/generic.idl
index e080b2d2e99..b4c54b7568d 100644
--- a/src/mongo/db/commands/generic.idl
+++ b/src/mongo/db/commands/generic.idl
@@ -48,6 +48,7 @@ commands:
description: "Log a message on the server"
command_name: logMessage
namespace: type
+ api_version: ""
type: string
cpp_name: LogMessageCommand
strict: true
diff --git a/src/mongo/db/commands/http_client.idl b/src/mongo/db/commands/http_client.idl
index f1d6131fb68..1abaeff1944 100644
--- a/src/mongo/db/commands/http_client.idl
+++ b/src/mongo/db/commands/http_client.idl
@@ -51,6 +51,7 @@ commands:
description: "Fetch an HTTP(S) resource via GET"
command_name: httpClientRequest
namespace: ignored
+ api_version: ""
fields:
uri:
description: "Document location to fetch"
diff --git a/src/mongo/db/commands/internal_rename_if_options_and_indexes_match.idl b/src/mongo/db/commands/internal_rename_if_options_and_indexes_match.idl
index 8cd19875d7a..d64d32d3967 100644
--- a/src/mongo/db/commands/internal_rename_if_options_and_indexes_match.idl
+++ b/src/mongo/db/commands/internal_rename_if_options_and_indexes_match.idl
@@ -38,6 +38,7 @@ commands:
command."
command_name: internalRenameIfOptionsAndIndexesMatch
namespace: ignored
+ api_version: ""
fields:
from:
type: namespacestring
diff --git a/src/mongo/db/commands/kill_operations.idl b/src/mongo/db/commands/kill_operations.idl
index b9533a42c40..d3e2a9cd5dc 100644
--- a/src/mongo/db/commands/kill_operations.idl
+++ b/src/mongo/db/commands/kill_operations.idl
@@ -38,6 +38,7 @@ commands:
cpp_name: KillOperationsRequest
description: "Interrupt a list of operations on a remote server"
namespace: ignored
+ api_version: ""
strict: true
fields:
operationKeys:
diff --git a/src/mongo/db/commands/map_reduce.idl b/src/mongo/db/commands/map_reduce.idl
index 592e4e21c74..b2e8cbf22f6 100644
--- a/src/mongo/db/commands/map_reduce.idl
+++ b/src/mongo/db/commands/map_reduce.idl
@@ -72,6 +72,7 @@ commands:
description: "The MapReduce command."
command_name: "MapReduce"
namespace: concatenate_with_db
+ api_version: ""
strict: true
fields:
map:
diff --git a/src/mongo/db/commands/profile.idl b/src/mongo/db/commands/profile.idl
index 15ec549c668..6eac49f834c 100644
--- a/src/mongo/db/commands/profile.idl
+++ b/src/mongo/db/commands/profile.idl
@@ -49,6 +49,7 @@ commands:
cpp_name: ProfileCmdRequest
strict: false
namespace: type
+ api_version: ""
type: safeInt64
fields:
slowms:
diff --git a/src/mongo/db/commands/rename_collection.idl b/src/mongo/db/commands/rename_collection.idl
index 51f6317ea15..ba7c19699d1 100644
--- a/src/mongo/db/commands/rename_collection.idl
+++ b/src/mongo/db/commands/rename_collection.idl
@@ -39,6 +39,7 @@ commands:
cpp_name: RenameCollectionCommand
strict: true
namespace: type
+ api_version: ""
type: namespacestring
fields:
to:
diff --git a/src/mongo/db/commands/resharding_test_commands.idl b/src/mongo/db/commands/resharding_test_commands.idl
index 1673ea0509d..c9aa618dada 100644
--- a/src/mongo/db/commands/resharding_test_commands.idl
+++ b/src/mongo/db/commands/resharding_test_commands.idl
@@ -38,6 +38,7 @@ commands:
command_name: testReshardCloneCollection
description: "The 'testReshardCloneCollection' command."
namespace: type
+ api_version: ""
type: namespacestring
fields:
atClusterTime:
diff --git a/src/mongo/db/commands/resize_oplog.idl b/src/mongo/db/commands/resize_oplog.idl
index 4e9d9fe9ccf..6c3e211e644 100644
--- a/src/mongo/db/commands/resize_oplog.idl
+++ b/src/mongo/db/commands/resize_oplog.idl
@@ -39,6 +39,7 @@ commands:
cpp_name: ReplSetResizeOplogRequest
strict: false
namespace: type
+ api_version: ""
type: safeInt64
fields:
size:
diff --git a/src/mongo/db/commands/rotate_certificates.idl b/src/mongo/db/commands/rotate_certificates.idl
index 5ebc8e1678f..51bc72b32d9 100644
--- a/src/mongo/db/commands/rotate_certificates.idl
+++ b/src/mongo/db/commands/rotate_certificates.idl
@@ -39,6 +39,7 @@ commands:
description: "An administrative command which rotates the certificates to be used by new SSL connections"
command_name: rotateCertificates
namespace: ignored
+ api_version: ""
fields:
message:
description: "Message to be logged upon successful rotation"
diff --git a/src/mongo/db/commands/rwc_defaults_commands.idl b/src/mongo/db/commands/rwc_defaults_commands.idl
index 8b9997b03a1..87ef62adc4b 100644
--- a/src/mongo/db/commands/rwc_defaults_commands.idl
+++ b/src/mongo/db/commands/rwc_defaults_commands.idl
@@ -59,6 +59,7 @@ commands:
description: "Set the current read/write concern defaults (cluster-wide)"
command_name: setDefaultRWConcern
namespace: ignored
+ api_version: ""
fields:
defaultReadConcern:
description: "The new default read concern"
@@ -73,6 +74,7 @@ commands:
description: "Get the current read/write concern defaults being applied by this node"
command_name: getDefaultRWConcern
namespace: ignored
+ api_version: ""
fields:
inMemory:
type: bool
diff --git a/src/mongo/db/commands/set_feature_compatibility_version.idl b/src/mongo/db/commands/set_feature_compatibility_version.idl
index 0c0f9214e10..eb544dab3b3 100644
--- a/src/mongo/db/commands/set_feature_compatibility_version.idl
+++ b/src/mongo/db/commands/set_feature_compatibility_version.idl
@@ -41,6 +41,7 @@ commands:
cpp_name: SetFeatureCompatibilityVersion
strict: true
namespace: type
+ api_version: ""
type: fcv_string
fields:
downgradeOnDiskChanges:
diff --git a/src/mongo/db/commands/set_index_commit_quorum.idl b/src/mongo/db/commands/set_index_commit_quorum.idl
index fdbd5d20ad2..97cd14c2938 100644
--- a/src/mongo/db/commands/set_index_commit_quorum.idl
+++ b/src/mongo/db/commands/set_index_commit_quorum.idl
@@ -44,6 +44,7 @@ commands:
description: "Resets the commitQuorum for an index build."
strict: false
namespace: concatenate_with_db
+ api_version: ""
fields:
indexNames:
type: array<string>
diff --git a/src/mongo/db/commands/shutdown.idl b/src/mongo/db/commands/shutdown.idl
index 166bf4677ab..2685401de96 100644
--- a/src/mongo/db/commands/shutdown.idl
+++ b/src/mongo/db/commands/shutdown.idl
@@ -38,6 +38,7 @@ commands:
cpp_name: ShutdownRequest
description: "Shutdown the database"
namespace: ignored
+ api_version: ""
strict: true
fields:
force:
diff --git a/src/mongo/db/commands/tenant_migration_donor_cmds.idl b/src/mongo/db/commands/tenant_migration_donor_cmds.idl
index 3530cdfc8b8..43823f99cb2 100644
--- a/src/mongo/db/commands/tenant_migration_donor_cmds.idl
+++ b/src/mongo/db/commands/tenant_migration_donor_cmds.idl
@@ -57,6 +57,7 @@ commands:
command_name: donorStartMigration
strict: true
namespace: ignored
+ api_version: ""
fields:
migrationId:
description: "Unique identifier for the tenant migration."
@@ -90,6 +91,7 @@ commands:
command_name: donorForgetMigration
strict: true
namespace: ignored
+ api_version: ""
fields:
migrationId:
description: "Unique identifier for the tenant migration."
@@ -100,6 +102,7 @@ commands:
command_name: donorAbortMigration
strict: true
namespace: ignored
+ api_version: ""
fields:
migrationId:
description: "Unique identifier for the tenant migration."
diff --git a/src/mongo/db/commands/tenant_migration_recipient_cmds.idl b/src/mongo/db/commands/tenant_migration_recipient_cmds.idl
index b4811a1bde8..4c96e219c4e 100644
--- a/src/mongo/db/commands/tenant_migration_recipient_cmds.idl
+++ b/src/mongo/db/commands/tenant_migration_recipient_cmds.idl
@@ -86,6 +86,7 @@ commands:
command_name: recipientSyncData
strict: true
namespace: ignored
+ api_version: ""
inline_chained_structs: true
chained_structs:
MigrationRecipientCommonData: MigrationRecipientCommonData
@@ -104,6 +105,7 @@ commands:
command_name: recipientForgetMigration
strict: true
namespace: ignored
+ api_version: ""
inline_chained_structs: true
chained_structs:
MigrationRecipientCommonData: MigrationRecipientCommonData
diff --git a/src/mongo/db/commands/txn_two_phase_commit_cmds.idl b/src/mongo/db/commands/txn_two_phase_commit_cmds.idl
index 022ad192b4b..de695d3b979 100644
--- a/src/mongo/db/commands/txn_two_phase_commit_cmds.idl
+++ b/src/mongo/db/commands/txn_two_phase_commit_cmds.idl
@@ -46,12 +46,14 @@ commands:
command_name: prepareTransaction
strict: true
namespace: ignored
+ api_version: ""
coordinateCommitTransaction:
description: "Parser for the 'coordinateCommitTransaction' command."
command_name: coordinateCommitTransaction
strict: false
namespace: ignored
+ api_version: ""
fields:
participants:
description: "An array of shard participants that must be included in the commit."
diff --git a/src/mongo/db/commands/user_management_commands.idl b/src/mongo/db/commands/user_management_commands.idl
index e8a3715bb8c..d4dec18cb61 100644
--- a/src/mongo/db/commands/user_management_commands.idl
+++ b/src/mongo/db/commands/user_management_commands.idl
@@ -103,6 +103,7 @@ commands:
description: "Create a user"
command_name: createUser
namespace: type
+ api_version: ""
type: string
cpp_name: CreateUserCommand
strict: true
@@ -139,6 +140,7 @@ commands:
description: "Modify a user"
command_name: updateUser
namespace: type
+ api_version: ""
type: string
cpp_name: UpdateUserCommand
strict: true
@@ -176,6 +178,7 @@ commands:
description: "Drop a single user"
command_name: dropUser
namespace: type
+ api_version: ""
type: string
cpp_name: DropUserCommand
strict: true
@@ -184,6 +187,7 @@ commands:
description: "Drop all users in the database"
command_name: dropAllUsersFromDatabase
namespace: ignored
+ api_version: ""
cpp_name: DropAllUsersFromDatabaseCommand
strict: true
@@ -191,6 +195,7 @@ commands:
description: "Grant additional roles to a user"
command_name: grantRolesToUser
namespace: type
+ api_version: ""
type: string
cpp_name: GrantRolesToUserCommand
strict: true
@@ -203,6 +208,7 @@ commands:
description: "Revoke previously assigned roles from a user"
command_name: revokeRolesFromUser
namespace: type
+ api_version: ""
type: string
cpp_name: RevokeRolesFromUserCommand
strict: true
@@ -215,6 +221,7 @@ commands:
description: "Create a new role"
command_name: createRole
namespace: type
+ api_version: ""
type: string
cpp_name: CreateRoleCommand
strict: true
@@ -234,6 +241,7 @@ commands:
description: "Update an existing role"
command_name: updateRole
namespace: type
+ api_version: ""
type: string
cpp_name: UpdateRoleCommand
strict: true
@@ -255,6 +263,7 @@ commands:
description: "Grants privileges to a role"
command_name: grantPrivilegesToRole
namespace: type
+ api_version: ""
type: string
cpp_name: GrantPrivilegesToRoleCommand
strict: true
@@ -267,6 +276,7 @@ commands:
description: "Grants privileges to a role"
command_name: revokePrivilegesFromRole
namespace: type
+ api_version: ""
type: string
cpp_name: RevokePrivilegesFromRoleCommand
strict: true
@@ -279,6 +289,7 @@ commands:
description: "Grant roles to a role"
command_name: grantRolesToRole
namespace: type
+ api_version: ""
type: string
cpp_name: GrantRolesToRoleCommand
strict: true
@@ -291,6 +302,7 @@ commands:
description: "Revoke roles from a role"
command_name: revokeRolesFromRole
namespace: type
+ api_version: ""
type: string
cpp_name: RevokeRolesFromRoleCommand
strict: true
@@ -307,6 +319,7 @@ commands:
removed from some user/roles but otherwise still exists.
command_name: dropRole
namespace: type
+ api_version: ""
type: string
cpp_name: DropRoleCommand
strict: true
@@ -319,6 +332,7 @@ commands:
where the roles have been removed from some user/roles but otherwise still exist.
command_name: dropAllRolesFromDatabase
namespace: ignored
+ api_version: ""
cpp_name: DropAllRolesFromDatabaseCommand
strict: true
@@ -326,6 +340,7 @@ commands:
description: "Returns information about users."
command_name: usersInfo
namespace: type
+ api_version: ""
type: UsersInfoCommandArg
cpp_name: UsersInfoCommand
strict: true
@@ -359,6 +374,7 @@ commands:
description: "returns information about roles."
command_name: rolesInfo
namespace: type
+ api_version: ""
type: RolesInfoCommandArg
cpp_name: RolesInfoCommand
strict: true
@@ -387,6 +403,7 @@ commands:
invalidateUserCache:
description: "Invalidate the user cache"
namespace: ignored
+ api_version: ""
command_name: invalidateUserCache
cpp_name: InvalidateUserCacheCommand
strict: true
@@ -394,6 +411,7 @@ commands:
_getUserCacheGeneration:
description: "Returns the current user cache generation"
namespace: ignored
+ api_version: ""
command_name: _getUserCacheGeneration
cpp_name: GetUserCacheGenerationCommand
strict: true
@@ -401,6 +419,7 @@ commands:
_mergeAuthzCollections:
description: "Internal command used by mongorestore for updating user/role data"
namespace: ignored
+ api_version: ""
command_name: _mergeAuthzCollections
cpp_name: MergeAuthzCollectionsCommand
strict: true
diff --git a/src/mongo/db/commands/vote_commit_index_build.idl b/src/mongo/db/commands/vote_commit_index_build.idl
index 47e78b1b460..5ef28968573 100644
--- a/src/mongo/db/commands/vote_commit_index_build.idl
+++ b/src/mongo/db/commands/vote_commit_index_build.idl
@@ -42,6 +42,7 @@ commands:
description: "An internal mongod command pertaining to cross replica set index builds"
strict: false
namespace: type
+ api_version: ""
type: uuid
fields:
hostAndPort:
diff --git a/src/mongo/db/commands_test_example.idl b/src/mongo/db/commands_test_example.idl
index 651c1c2cf2b..441c0c7694d 100644
--- a/src/mongo/db/commands_test_example.idl
+++ b/src/mongo/db/commands_test_example.idl
@@ -37,18 +37,21 @@ commands:
description: "increment an integer (TypedCommand example)"
command_name: exampleIncrement
namespace: concatenate_with_db
+ api_version: ""
fields:
i: int
exampleVoid:
description: "no return, just side effects"
command_name: exampleVoid
namespace: concatenate_with_db
+ api_version: ""
fields:
i: int
exampleMinimal:
description: "like exampleIncrement, but use MinimalInvocationBase"
command_name: exampleMinimal
namespace: concatenate_with_db
+ api_version: ""
fields:
i: int
diff --git a/src/mongo/db/free_mon/free_mon_commands.idl b/src/mongo/db/free_mon/free_mon_commands.idl
index 1c2372c47c1..2fddd12a2c3 100644
--- a/src/mongo/db/free_mon/free_mon_commands.idl
+++ b/src/mongo/db/free_mon/free_mon_commands.idl
@@ -47,6 +47,7 @@ commands:
description: "setFreeMonitoring Command"
command_name: setFreeMonitoring
namespace: ignored
+ api_version: ""
fields:
action:
description: "Action to take"
@@ -56,4 +57,5 @@ commands:
description: "getFreeMonitoringStatus Command"
command_name: getFreeMonitoringStatus
namespace: ignored
+ api_version: ""
diff --git a/src/mongo/db/ops/find_and_modify_command.idl b/src/mongo/db/ops/find_and_modify_command.idl
index 572ce368e67..5744e80a0d7 100644
--- a/src/mongo/db/ops/find_and_modify_command.idl
+++ b/src/mongo/db/ops/find_and_modify_command.idl
@@ -74,6 +74,7 @@ commands:
cpp_name: FindAndModifyCommand
strict: true
namespace: concatenate_with_db
+ api_version: ""
fields:
query:
description: "The query that matches documents to update. Uses the same query
diff --git a/src/mongo/db/ops/write_ops.idl b/src/mongo/db/ops/write_ops.idl
index 06195f1fe50..c8915ae15ca 100644
--- a/src/mongo/db/ops/write_ops.idl
+++ b/src/mongo/db/ops/write_ops.idl
@@ -166,6 +166,7 @@ commands:
command_name: insert
strict: true
namespace: concatenate_with_db
+ api_version: ""
chained_structs:
WriteCommandBase: writeCommandBase
fields:
@@ -179,6 +180,7 @@ commands:
command_name: update
strict: true
namespace: concatenate_with_db
+ api_version: ""
chained_structs:
WriteCommandBase: writeCommandBase
fields:
@@ -203,6 +205,7 @@ commands:
command_name: delete
strict: true
namespace: concatenate_with_db
+ api_version: ""
chained_structs:
WriteCommandBase: writeCommandBase
fields:
diff --git a/src/mongo/db/pipeline/aggregate_command.idl b/src/mongo/db/pipeline/aggregate_command.idl
index 926ceb42792..80f83a4d1f9 100644
--- a/src/mongo/db/pipeline/aggregate_command.idl
+++ b/src/mongo/db/pipeline/aggregate_command.idl
@@ -66,6 +66,7 @@ commands:
command_name: aggregate
strict: true
namespace: concatenate_with_db
+ api_version: ""
allow_global_collection_name: true
fields:
pipeline:
diff --git a/src/mongo/db/query/count_command.idl b/src/mongo/db/query/count_command.idl
index 8e5bd3ac27d..df55cddcea0 100644
--- a/src/mongo/db/query/count_command.idl
+++ b/src/mongo/db/query/count_command.idl
@@ -61,6 +61,7 @@ commands:
cpp_name: CountCommand
strict: true
namespace: concatenate_with_db_or_uuid
+ api_version: ""
fields:
query:
description: "A query that selects which documents to count in the collection or
diff --git a/src/mongo/db/query/distinct_command.idl b/src/mongo/db/query/distinct_command.idl
index 7fdd7b04e25..8d9750df6fd 100644
--- a/src/mongo/db/query/distinct_command.idl
+++ b/src/mongo/db/query/distinct_command.idl
@@ -38,6 +38,7 @@ commands:
command_name: distinct
cpp_name: DistinctCommand
namespace: concatenate_with_db_or_uuid
+ api_version: ""
strict: true
fields:
key:
diff --git a/src/mongo/db/query/find_command.idl b/src/mongo/db/query/find_command.idl
index 8d47e5cda73..86b95c93bcf 100644
--- a/src/mongo/db/query/find_command.idl
+++ b/src/mongo/db/query/find_command.idl
@@ -68,6 +68,7 @@ commands:
description: "A struct representing the find command"
strict: true
namespace: concatenate_with_db_or_uuid
+ api_version: ""
non_const_getter: true
fields:
filter:
diff --git a/src/mongo/db/repl/repl_set_test_egress.idl b/src/mongo/db/repl/repl_set_test_egress.idl
index 2fe83d3450c..d68aeaf7cba 100644
--- a/src/mongo/db/repl/repl_set_test_egress.idl
+++ b/src/mongo/db/repl/repl_set_test_egress.idl
@@ -44,6 +44,7 @@ commands:
description: "Attempt to connect to a cluster member"
command_name: replSetTestEgress
namespace: ignored
+ api_version: ""
fields:
target:
description: "Member address to connect and authenticate to, empty to select random member"
diff --git a/src/mongo/db/s/add_shard_cmd.idl b/src/mongo/db/s/add_shard_cmd.idl
index 8d67bfebba0..b57a2edc14d 100644
--- a/src/mongo/db/s/add_shard_cmd.idl
+++ b/src/mongo/db/s/add_shard_cmd.idl
@@ -61,6 +61,7 @@ commands:
cpp_name: AddShard
description: "_addShard Command"
namespace: ignored
+ api_version: ""
fields:
shardIdentity:
description: "Identity metadata for the new shard"
diff --git a/src/mongo/db/traffic_recorder.idl b/src/mongo/db/traffic_recorder.idl
index 3e8f524ca09..ed6a141fe3e 100644
--- a/src/mongo/db/traffic_recorder.idl
+++ b/src/mongo/db/traffic_recorder.idl
@@ -61,6 +61,7 @@ commands:
description: "start recording Command"
command_name: startRecordingTraffic
namespace: ignored
+ api_version: ""
fields:
filename:
description: "output file name"
@@ -78,6 +79,7 @@ commands:
description: "stop recording Command"
command_name: stopRecordingTraffic
namespace: ignored
+ api_version: ""
server_parameters:
trafficRecordingDirectory: