diff options
author | Paolo Polato <paolo.polato@mongodb.com> | 2022-05-29 20:07:40 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-05-29 20:43:20 +0000 |
commit | 9ae0a24f4d2323424784a941c783c7cf39c3ec20 (patch) | |
tree | 5ac67365b48a57876941ab1c0660582227eff09a /src/mongo/s | |
parent | 491f15aaca5d9c4f8a808f6a0a449ad6499467e3 (diff) | |
download | mongo-9ae0a24f4d2323424784a941c783c7cf39c3ec20.tar.gz |
SERVER-66480 introduce joinMigration shard cmd to set a barrier on the Balancer initialisation
(cherry picked from commit 531dfe764bc0645f5e676feaf5687100c0a5e612)
Diffstat (limited to 'src/mongo/s')
-rw-r--r-- | src/mongo/s/SConscript | 1 | ||||
-rw-r--r-- | src/mongo/s/request_types/shardsvr_join_migrations_request.idl | 42 |
2 files changed, 43 insertions, 0 deletions
diff --git a/src/mongo/s/SConscript b/src/mongo/s/SConscript index ddcd048fe64..336e7a2ff98 100644 --- a/src/mongo/s/SConscript +++ b/src/mongo/s/SConscript @@ -202,6 +202,7 @@ env.Library( 'request_types/flush_resharding_state_change.idl', 'request_types/flush_routing_table_cache_updates.idl', 'request_types/get_database_version.idl', + 'request_types/shardsvr_join_migrations_request.idl', 'request_types/merge_chunk_request.idl', 'request_types/migration_secondary_throttle_options.cpp', 'request_types/move_chunk_request.cpp', diff --git a/src/mongo/s/request_types/shardsvr_join_migrations_request.idl b/src/mongo/s/request_types/shardsvr_join_migrations_request.idl new file mode 100644 index 00000000000..e779dd5da84 --- /dev/null +++ b/src/mongo/s/request_types/shardsvr_join_migrations_request.idl @@ -0,0 +1,42 @@ +# Copyright (C) 2022-present MongoDB, Inc. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the Server Side Public License, version 1, +# as published by MongoDB, Inc. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# Server Side Public License for more details. +# +# You should have received a copy of the Server Side Public License +# along with this program. If not, see +# <http://www.mongodb.com/licensing/server-side-public-license>. +# +# As a special exception, the copyright holders give permission to link the +# code of portions of this program with the OpenSSL library under certain +# conditions as described in each individual source file and distribute +# linked combinations including the program with the OpenSSL library. You +# must comply with the Server Side Public License in all respects for +# all of the code used other than as permitted herein. If you modify file(s) +# with this exception, you may extend this exception to your version of the +# file(s), but you are not obligated to do so. If you do not wish to do so, +# delete this exception statement from your version. If you delete this +# exception statement from all source files in the program, then also delete +# it in the license file. +# + +global: + cpp_namespace: "mongo" + +imports: + - "mongo/idl/basic_types.idl" + +commands: + _shardsvrJoinMigrations: + command_name: _shardsvrJoinMigrations + cpp_name: ShardsvrJoinMigrations + description: "Command to synch the caller on the completion of any chunk migration activity performed by the shard (as either donor or recipient)" + namespace: ignored + api_version: "" + strict: false |