summaryrefslogtreecommitdiff
path: root/src/mongo/db/namespace_string.h
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2015-08-21 20:31:40 -0400
committerBenety Goh <benety@mongodb.com>2015-08-21 20:31:40 -0400
commit045cd1070cae1e7827255850c2fe35194e48b24e (patch)
tree154354109f0039ff21d6e93e0b1687115f184751 /src/mongo/db/namespace_string.h
parent6124799c4e14d1ffc9419e6548ec96626e73dcda (diff)
downloadmongo-045cd1070cae1e7827255850c2fe35194e48b24e.tar.gz
Revert "SERVER-19855 Do not perform shard version checking where not necessary"
This reverts commit 31716d2ae526d82d7d36464f6c9fae8b9f38542f.
Diffstat (limited to 'src/mongo/db/namespace_string.h')
-rw-r--r--src/mongo/db/namespace_string.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mongo/db/namespace_string.h b/src/mongo/db/namespace_string.h
index 9078fa2f7e4..28037eb24b4 100644
--- a/src/mongo/db/namespace_string.h
+++ b/src/mongo/db/namespace_string.h
@@ -269,10 +269,6 @@ private:
size_t _dotIndex;
};
-template <typename StreamType>
-StreamType& operator<<(StreamType& stream, const NamespaceString& value) {
- return stream << value.ns();
-}
// "database.a.b.c" -> "database"
inline StringData nsToDatabaseSubstring(StringData ns) {
@@ -354,7 +350,7 @@ struct NamespaceDBEquals {
return nsDBEquals(a, b);
}
};
+}
-} // namespace mongo
#include "mongo/db/namespace_string-inl.h"