summaryrefslogtreecommitdiff
path: root/db/database.h
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2008-12-19 09:52:54 -0500
committerAaron <aaron@10gen.com>2008-12-19 09:52:54 -0500
commit1d6104fce111b0cec17e3f53d487677b2850bbae (patch)
tree131379b0b9fee3cbef7d97e8faf94ef67ba8e5eb /db/database.h
parente86ec7a376219d6bfe61eea9f2db17ffed439026 (diff)
downloadmongo-1d6104fce111b0cec17e3f53d487677b2850bbae.tar.gz
Cursor keeps own copy of ns
Diffstat (limited to 'db/database.h')
-rw-r--r--db/database.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/db/database.h b/db/database.h
index 90accd99747..636e3f1eaf4 100644
--- a/db/database.h
+++ b/db/database.h
@@ -27,6 +27,7 @@ public:
Database(const char *nm, bool& justCreated, const char *_path = dbpath) :
name(nm),
path(_path) {
+ assert( !string( nm ).empty() );
justCreated = namespaceIndex.init(_path, nm);
profile = 0;
profileName = name + ".system.profile";