summaryrefslogtreecommitdiff
path: root/db/namespace.h
diff options
context:
space:
mode:
Diffstat (limited to 'db/namespace.h')
-rw-r--r--db/namespace.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/db/namespace.h b/db/namespace.h
index 4470aa63f09..2ae5e3f0fc3 100644
--- a/db/namespace.h
+++ b/db/namespace.h
@@ -33,7 +33,7 @@ namespace mongo {
/* in the mongo source code, "client" means "database". */
- const int MaxClientLen = 256; // max str len for the db name
+ const int MaxClientLen = 256; // max str len for the db name, including null char
// "database.a.b.c" -> "database"
inline void nsToClient(const char *ns, char *database) {
@@ -554,10 +554,10 @@ namespace mongo {
}
return false;
}
-
+
bool allocated() const {
return ht != 0;
- }
+ }
private:
boost::filesystem::path path() const;