summaryrefslogtreecommitdiff
path: root/src/mongo/s/sharding_egress_metadata_hook.cpp
diff options
context:
space:
mode:
authorEsha Maharishi <esha.maharishi@mongodb.com>2016-04-06 13:08:36 -0400
committerEsha Maharishi <esha.maharishi@mongodb.com>2016-04-06 14:07:52 -0400
commit9ae3e32320a71a46c6a236187b0dc00f8844ddb7 (patch)
treeaed263dce8277b586a3e07620ed53fc473988ba7 /src/mongo/s/sharding_egress_metadata_hook.cpp
parentc18c47fa9ea0d1215fe83b735e615a804c0aad62 (diff)
downloadmongo-9ae3e32320a71a46c6a236187b0dc00f8844ddb7.tar.gz
SERVER-23572 move sharding_egress_metadata_hook library into coreshard
Diffstat (limited to 'src/mongo/s/sharding_egress_metadata_hook.cpp')
-rw-r--r--src/mongo/s/sharding_egress_metadata_hook.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/s/sharding_egress_metadata_hook.cpp b/src/mongo/s/sharding_egress_metadata_hook.cpp
index a4cf3594201..7cdbdd837ff 100644
--- a/src/mongo/s/sharding_egress_metadata_hook.cpp
+++ b/src/mongo/s/sharding_egress_metadata_hook.cpp
@@ -91,7 +91,7 @@ Status ShardingEgressMetadataHook::_writeRequestMetadataForShard(shared_ptr<Shar
Status ShardingEgressMetadataHook::readReplyMetadata(const StringData replySource,
const BSONObj& metadataObj) {
try {
- saveGLEStats(metadataObj, replySource);
+ _saveGLEStats(metadataObj, replySource);
auto shard = grid.shardRegistry()->getShardNoReload(replySource.toString());
return _readReplyMetadataForShard(shard, metadataObj);
} catch (...) {
@@ -102,7 +102,7 @@ Status ShardingEgressMetadataHook::readReplyMetadata(const StringData replySourc
Status ShardingEgressMetadataHook::readReplyMetadata(const HostAndPort& replySource,
const BSONObj& metadataObj) {
try {
- saveGLEStats(metadataObj, replySource.toString());
+ _saveGLEStats(metadataObj, replySource.toString());
auto shard = grid.shardRegistry()->getShardForHostNoReload(replySource);
return _readReplyMetadataForShard(shard, metadataObj);
} catch (...) {
@@ -133,5 +133,7 @@ Status ShardingEgressMetadataHook::_readReplyMetadataForShard(shared_ptr<Shard>
}
}
+void ShardingEgressMetadataHook::_saveGLEStats(const BSONObj& metadata, StringData hostString) {}
+
} // namespace rpc
} // namespace mongo