summaryrefslogtreecommitdiff
path: root/db/db.h
diff options
context:
space:
mode:
authordwight <dwight@dmmb.local>2009-12-29 13:45:46 -0500
committerdwight <dwight@dmmb.local>2009-12-29 13:45:46 -0500
commit6f4bfb2e1481caff4b5013765bc28ccdf7900033 (patch)
tree1712579ad30240083c77812decfc85612c076ee1 /db/db.h
parent24e2542d9525102369d8cf78bd165b2cc2629670 (diff)
parent7d65d20f5aed286a418d6e9e0bcc12d8bcb75cb8 (diff)
downloadmongo-6f4bfb2e1481caff4b5013765bc28ccdf7900033.tar.gz
Merge branch 'master' of git@github.com:mongodb/mongo
Conflicts: SConstruct db/dbinfo.h
Diffstat (limited to 'db/db.h')
-rw-r--r--db/db.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/db/db.h b/db/db.h
index fdd0d9eaa1b..13837d04a7b 100644
--- a/db/db.h
+++ b/db/db.h
@@ -101,9 +101,10 @@ namespace mongo {
bool justCreated;
Database *newdb = new Database(cl, justCreated, path);
databases[key] = newdb;
- //newdb->finishInit();
cc().setns(ns, newdb);
+ newdb->finishInit();
+
return justCreated;
}
@@ -136,11 +137,11 @@ namespace mongo {
locktype = dbMutex.getState();
assert( locktype );
if ( locktype > 0 ) {
- massert("can't temprelease nested write lock", locktype == 1);
+ massert( 10298 , "can't temprelease nested write lock", locktype == 1);
dbMutex.unlock();
}
else {
- massert("can't temprelease nested read lock", locktype == -1);
+ massert( 10299 , "can't temprelease nested read lock", locktype == -1);
dbMutex.unlock_shared();
}
}