diff options
author | Aaron <aaron@10gen.com> | 2008-12-19 09:52:54 -0500 |
---|---|---|
committer | Aaron <aaron@10gen.com> | 2008-12-19 09:52:54 -0500 |
commit | 1d6104fce111b0cec17e3f53d487677b2850bbae (patch) | |
tree | 131379b0b9fee3cbef7d97e8faf94ef67ba8e5eb /db/database.h | |
parent | e86ec7a376219d6bfe61eea9f2db17ffed439026 (diff) | |
download | mongo-1d6104fce111b0cec17e3f53d487677b2850bbae.tar.gz |
Cursor keeps own copy of ns
Diffstat (limited to 'db/database.h')
-rw-r--r-- | db/database.h | 1 |
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"; |