summaryrefslogtreecommitdiff
path: root/src/mongo/db/namespace_string.cpp
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2016-04-12 14:21:59 -0400
committerBenety Goh <benety@mongodb.com>2016-04-18 15:46:12 -0400
commit6811d7c70d13559c3162e8f4333c3c061e5a5220 (patch)
tree70fba42605c3ced184f175adc45901d16e02c0e1 /src/mongo/db/namespace_string.cpp
parent3bead6a7dee0c224242463d75acda511e8e8bb09 (diff)
downloadmongo-6811d7c70d13559c3162e8f4333c3c061e5a5220.tar.gz
SERVER-18038 added minvalid and initial sync flag support to repl storage interface
Diffstat (limited to 'src/mongo/db/namespace_string.cpp')
-rw-r--r--src/mongo/db/namespace_string.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/db/namespace_string.cpp b/src/mongo/db/namespace_string.cpp
index a92c86de342..61297365246 100644
--- a/src/mongo/db/namespace_string.cpp
+++ b/src/mongo/db/namespace_string.cpp
@@ -30,6 +30,8 @@
#include "mongo/platform/basic.h"
+#include <ostream>
+
#include "mongo/db/namespace_string.h"
namespace mongo {
@@ -122,4 +124,9 @@ string NamespaceString::escapeDbName(const StringData dbname) {
return escapedDbName;
}
+
+std::ostream& operator<<(std::ostream& stream, const NamespaceString& nss) {
+ return stream << nss.toString();
+}
+
} // namespace mongo