summaryrefslogtreecommitdiff
path: root/db/namespace.cpp
diff options
context:
space:
mode:
authorAntonin Kral <a.kral@bobek.cz>2010-12-10 13:05:34 +0100
committerAntonin Kral <a.kral@bobek.cz>2010-12-10 13:05:34 +0100
commited4a804c027562e1bf6a0f45dae7326198c29f8e (patch)
tree9d04736132d5421497a80619e30d4c2e03e76728 /db/namespace.cpp
parente598e7ada36302f35a0da8ae0c63c34b51b6a720 (diff)
downloadmongodb-ed4a804c027562e1bf6a0f45dae7326198c29f8e.tar.gz
Imported Upstream version 1.6.5
Diffstat (limited to 'db/namespace.cpp')
-rw-r--r--db/namespace.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/db/namespace.cpp b/db/namespace.cpp
index de3f4df..8a1ab6f 100644
--- a/db/namespace.cpp
+++ b/db/namespace.cpp
@@ -564,8 +564,10 @@ namespace mongo {
}
void renameNamespace( const char *from, const char *to ) {
- NamespaceIndex *ni = nsindex( from );
- assert( ni && ni->details( from ) && !ni->details( to ) );
+ NamespaceIndex *ni = nsindex( from );
+ assert( ni );
+ assert( ni->details( from ) );
+ assert( ! ni->details( to ) );
// Our namespace and index details will move to a different
// memory location. The only references to namespace and