diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2016-10-17 10:45:25 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2016-10-24 09:44:10 -0400 |
commit | 80d6ca07522fce27f9559007791ebe4a1afe0866 (patch) | |
tree | c5231e95d2436e229220b38c2305b7396f37558e /src/mongo/util/net/hostandport.cpp | |
parent | 0609d0ce2ef563d7a4cde77d46396fe5c92c6df1 (diff) | |
download | mongo-80d6ca07522fce27f9559007791ebe4a1afe0866.tar.gz |
SERVER-26683 Log reason for marking repl hosts as failed in the RSM
Diffstat (limited to 'src/mongo/util/net/hostandport.cpp')
-rw-r--r-- | src/mongo/util/net/hostandport.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mongo/util/net/hostandport.cpp b/src/mongo/util/net/hostandport.cpp index 04088d21861..abd8f2d6ade 100644 --- a/src/mongo/util/net/hostandport.cpp +++ b/src/mongo/util/net/hostandport.cpp @@ -180,6 +180,16 @@ std::ostream& operator<<(std::ostream& os, const HostAndPort& hp) { return os << hp.toString(); } +template <typename Allocator> +StringBuilderImpl<Allocator>& operator<<(StringBuilderImpl<Allocator>& os, const HostAndPort& hp) { + return os << hp.toString(); +} + +template StringBuilderImpl<StackAllocator>& operator<<(StringBuilderImpl<StackAllocator>&, + const HostAndPort&); +template StringBuilderImpl<SharedBufferAllocator>& operator<<( + StringBuilderImpl<SharedBufferAllocator>&, const HostAndPort&); + } // namespace mongo MONGO_HASH_NAMESPACE_START |