summaryrefslogtreecommitdiff
path: root/src/mongo/db/namespace_string.h
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.h
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.h')
-rw-r--r--src/mongo/db/namespace_string.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/db/namespace_string.h b/src/mongo/db/namespace_string.h
index 2f9ccc44490..3b21be69a90 100644
--- a/src/mongo/db/namespace_string.h
+++ b/src/mongo/db/namespace_string.h
@@ -31,6 +31,7 @@
#pragma once
#include <algorithm>
+#include <iosfwd>
#include <string>
#include "mongo/base/string_data.h"
@@ -304,6 +305,8 @@ private:
size_t _dotIndex;
};
+std::ostream& operator<<(std::ostream& stream, const NamespaceString& nss);
+
// "database.a.b.c" -> "database"
inline StringData nsToDatabaseSubstring(StringData ns) {
size_t i = ns.find('.');