summaryrefslogtreecommitdiff
path: root/src/mongo/s/client/shard_registry.h
diff options
context:
space:
mode:
authorMisha Tyulenev <misha@mongodb.com>2016-06-15 18:09:55 -0400
committerMisha Tyulenev <misha@mongodb.com>2016-06-15 18:10:20 -0400
commit8c8379b493eb9b71e34d6586c27280b75267e7c7 (patch)
treea17f7e982deed23f30aef3f0b7c39c77da2d73cd /src/mongo/s/client/shard_registry.h
parent9b00106b56966b334c878f36cca14deb71f6d8c7 (diff)
downloadmongo-8c8379b493eb9b71e34d6586c27280b75267e7c7.tar.gz
SERVER-23891 implement ShardId class
Diffstat (limited to 'src/mongo/s/client/shard_registry.h')
-rw-r--r--src/mongo/s/client/shard_registry.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/s/client/shard_registry.h b/src/mongo/s/client/shard_registry.h
index e65987485e9..e384a53feea 100644
--- a/src/mongo/s/client/shard_registry.h
+++ b/src/mongo/s/client/shard_registry.h
@@ -115,7 +115,7 @@ private:
// Protects the lookup maps below.
mutable stdx::mutex _mutex;
- using ShardMap = std::unordered_map<ShardId, std::shared_ptr<Shard>>;
+ using ShardMap = std::unordered_map<ShardId, std::shared_ptr<Shard>, ShardId::Hasher>;
// Map of both shardName -> Shard and hostName -> Shard
ShardMap _lookup;