diff options
author | dwight <dwight@dmmb.local> | 2009-12-29 13:45:46 -0500 |
---|---|---|
committer | dwight <dwight@dmmb.local> | 2009-12-29 13:45:46 -0500 |
commit | 6f4bfb2e1481caff4b5013765bc28ccdf7900033 (patch) | |
tree | 1712579ad30240083c77812decfc85612c076ee1 /db/db.h | |
parent | 24e2542d9525102369d8cf78bd165b2cc2629670 (diff) | |
parent | 7d65d20f5aed286a418d6e9e0bcc12d8bcb75cb8 (diff) | |
download | mongo-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.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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(); } } |