diff options
Diffstat (limited to 'src/mongo/s/client/shard_registry.cpp')
-rw-r--r-- | src/mongo/s/client/shard_registry.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/mongo/s/client/shard_registry.cpp b/src/mongo/s/client/shard_registry.cpp index 4d857a50dbe..7bf3c59abe4 100644 --- a/src/mongo/s/client/shard_registry.cpp +++ b/src/mongo/s/client/shard_registry.cpp @@ -501,19 +501,6 @@ shared_ptr<Shard> ShardRegistryData::findByShardId(const ShardId& shardId) const } shared_ptr<Shard> ShardRegistryData::_findByShardId(WithLock, ShardId const& shardId) const { - std::stringstream ss; - std::shared_ptr<Shard> shard; - for (auto i = _lookup.begin(); i != _lookup.end(); i++) { - shard = i->second; - ss << "(" << i->first << "," << shard->getId() << ")" - << ", "; - } - - LOGV2(123, - "_findByShardId: {shardId}; {ids}", - "shardId"_attr = shardId.toString(), - "ids"_attr = ss.str()); - auto i = _lookup.find(shardId); return (i != _lookup.end()) ? i->second : nullptr; } |