From 3180d787d5a6653ce5513d70c3331056781c399c Mon Sep 17 00:00:00 2001 From: Lamont Nelson Date: Thu, 27 Feb 2020 18:03:01 -0500 Subject: Revert "debug me" This reverts commit b5578f6ae1e66a7c8979115e43dc45eb7c2bd057. --- src/mongo/s/client/shard_registry.cpp | 13 ------------- 1 file changed, 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 ShardRegistryData::findByShardId(const ShardId& shardId) const } shared_ptr ShardRegistryData::_findByShardId(WithLock, ShardId const& shardId) const { - std::stringstream ss; - std::shared_ptr 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; } -- cgit v1.2.1