diff --git a/db/client.cpp b/db/client.cpp index d85cbc85d36..53c33edde6d 100644 --- a/db/client.cpp +++ b/db/client.cpp @@ -246,7 +246,7 @@ namespace mongo { } else { assert( x < -1 ); - uasserted(0, str::stream() << "can't open a database from a nested read lock " << ns); + uasserted(15928, str::stream() << "can't open a database from a nested read lock " << ns); } } diff --git a/db/database.cpp b/db/database.cpp index 9377e7c6f2d..b9c571925ba 100644 --- a/db/database.cpp +++ b/db/database.cpp @@ -417,7 +417,7 @@ namespace mongo { log(m.size() > 40 ? 1 : 0) << "Accessing: " << dbname << " for the first time" << endl; if( !dbMutex.isWriteLocked() ) { - uasserted(0, "can't open database in a read lock. consider retrying the query"); + uasserted(15927, "can't open database in a read lock. consider retrying the query"); } Database *db = new Database( dbname.c_str() , justCreated , path );