diff options
author | Blake Oler <blake.oler@mongodb.com> | 2018-03-13 14:01:44 -0400 |
---|---|---|
committer | Blake Oler <blake.oler@mongodb.com> | 2018-03-15 15:32:10 -0400 |
commit | ec4e33953073ae3f84f6d76d50aeb4ded6f6aa02 (patch) | |
tree | e5c4bc552cc51aa29d2f7a72c978206313860595 /src/mongo/s | |
parent | ab7e4e3598c631a0b01ae10b76b60ee90df19866 (diff) | |
download | mongo-ec4e33953073ae3f84f6d76d50aeb4ded6f6aa02.tar.gz |
SERVER-33586 Add _cloneCatalogData command
Diffstat (limited to 'src/mongo/s')
-rw-r--r-- | src/mongo/s/SConscript | 1 | ||||
-rw-r--r-- | src/mongo/s/request_types/clone_catalog_data.idl | 44 |
2 files changed, 45 insertions, 0 deletions
diff --git a/src/mongo/s/SConscript b/src/mongo/s/SConscript index 59aeadf2017..bdf38a7775d 100644 --- a/src/mongo/s/SConscript +++ b/src/mongo/s/SConscript @@ -131,6 +131,7 @@ env.Library( 'shard_id.cpp', 'versioning.cpp', env.Idlc('catalog/type_chunk_base.idl')[0], + env.Idlc('request_types/clone_catalog_data.idl')[0], env.Idlc('request_types/create_collection.idl')[0], env.Idlc('request_types/create_database.idl')[0], env.Idlc('request_types/flush_routing_table_cache_updates.idl')[0], diff --git a/src/mongo/s/request_types/clone_catalog_data.idl b/src/mongo/s/request_types/clone_catalog_data.idl new file mode 100644 index 00000000000..f26f71333b9 --- /dev/null +++ b/src/mongo/s/request_types/clone_catalog_data.idl @@ -0,0 +1,44 @@ +# Copyright (C) 2018 MongoDB Inc. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License, version 3, +# as published by the Free Software Foundation. +# +# 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 +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# +# 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 GNU Affero General 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. + +# cloneCatalogData IDL File + +global: + cpp_namespace: "mongo" + +imports: + - "mongo/idl/basic_types.idl" + +commands: + cloneCatalogData: + description: "The internal cloneCatalogData command on a shard" + namespace: type + type: namespacestring + strict: false + fields: + from: + type: string + description: "The connection string of the database to clone from." |