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/s/sharding_egress_metadata_hook.cpp | |
parent | c18c47fa9ea0d1215fe83b735e615a804c0aad62 (diff) | |
download | mongo-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.cpp | 6 |
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 |