diff options
author | Esha Maharishi <esha.maharishi@mongodb.com> | 2016-04-06 13:08:36 -0400 |
---|---|---|
committer | Esha Maharishi <esha.maharishi@mongodb.com> | 2016-04-06 14:07:52 -0400 |
commit | 9ae3e32320a71a46c6a236187b0dc00f8844ddb7 (patch) | |
tree | aed263dce8277b586a3e07620ed53fc473988ba7 /src/mongo/db/s | |
parent | c18c47fa9ea0d1215fe83b735e615a804c0aad62 (diff) | |
download | mongo-9ae3e32320a71a46c6a236187b0dc00f8844ddb7.tar.gz |
SERVER-23572 move sharding_egress_metadata_hook library into coreshard
Diffstat (limited to 'src/mongo/db/s')
3 files changed, 2 insertions, 85 deletions
diff --git a/src/mongo/db/s/sharding_connection_hook_for_mongod.cpp b/src/mongo/db/s/sharding_connection_hook_for_mongod.cpp index 938e21d466c..d072045a79b 100644 --- a/src/mongo/db/s/sharding_connection_hook_for_mongod.cpp +++ b/src/mongo/db/s/sharding_connection_hook_for_mongod.cpp @@ -31,13 +31,13 @@ #include "mongo/db/s/sharding_connection_hook_for_mongod.h" -#include "mongo/db/s/sharding_egress_metadata_hook_for_mongod.h" +#include "mongo/s/sharding_egress_metadata_hook.h" #include "mongo/stdx/memory.h" namespace mongo { ShardingConnectionHookForMongod::ShardingConnectionHookForMongod(bool shardedConnections) : ShardingConnectionHook(shardedConnections, - stdx::make_unique<rpc::ShardingEgressMetadataHookForMongod>()){}; + stdx::make_unique<rpc::ShardingEgressMetadataHook>()){}; } // namespace mongo diff --git a/src/mongo/db/s/sharding_egress_metadata_hook_for_mongod.cpp b/src/mongo/db/s/sharding_egress_metadata_hook_for_mongod.cpp deleted file mode 100644 index 113b0d406f0..00000000000 --- a/src/mongo/db/s/sharding_egress_metadata_hook_for_mongod.cpp +++ /dev/null @@ -1,40 +0,0 @@ -/** - * Copyright (C) 2016 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. - */ - -#include "mongo/platform/basic.h" - -#include "mongo/db/s/sharding_egress_metadata_hook_for_mongod.h" - -namespace mongo { -namespace rpc { - -void ShardingEgressMetadataHookForMongod::saveGLEStats(const BSONObj& metadata, - StringData hostString) {} - -} // namespace rpc -} // namespace mongo diff --git a/src/mongo/db/s/sharding_egress_metadata_hook_for_mongod.h b/src/mongo/db/s/sharding_egress_metadata_hook_for_mongod.h deleted file mode 100644 index cf390eedbad..00000000000 --- a/src/mongo/db/s/sharding_egress_metadata_hook_for_mongod.h +++ /dev/null @@ -1,43 +0,0 @@ -/** - * Copyright (C) 2016 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. - */ - -#pragma once - -#include "mongo/s/sharding_egress_metadata_hook.h" - -namespace mongo { - -namespace rpc { - -class ShardingEgressMetadataHookForMongod final : public ShardingEgressMetadataHook { -private: - void saveGLEStats(const BSONObj& metadata, StringData hostString) override; -}; - -} // namespace rpc -} // namespace mongo |