diff options
author | Lamont Nelson <lamont.nelson@mongodb.com> | 2020-02-27 18:03:01 -0500 |
---|---|---|
committer | Lamont Nelson <lamont.nelson@mongodb.com> | 2020-02-27 18:03:01 -0500 |
commit | 3180d787d5a6653ce5513d70c3331056781c399c (patch) | |
tree | 9ff16bdf1a702156c426a70440a2399866177296 | |
parent | 41cef2609b77701dfe7831248f3f0e89b70e1ad2 (diff) | |
download | mongo-3180d787d5a6653ce5513d70c3331056781c399c.tar.gz |
Revert "debug me"
This reverts commit b5578f6ae1e66a7c8979115e43dc45eb7c2bd057.
-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; } |