diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-12-28 16:43:43 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-12-28 16:43:43 -0500 |
commit | 0ab8149a8e9e900b63ee28b9590a249578339376 (patch) | |
tree | 564a5c516b7c308964b79ea761e4800efe26d252 /db/dbhelpers.cpp | |
parent | 95137f262c2a57831dccf058428a2f64e900496e (diff) | |
download | mongo-0ab8149a8e9e900b63ee28b9590a249578339376.tar.gz |
uassert/massert take error code SERVER-112
Diffstat (limited to 'db/dbhelpers.cpp')
-rw-r--r-- | db/dbhelpers.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/db/dbhelpers.cpp b/db/dbhelpers.cpp index d1a23e6d09c..45e313ba6c5 100644 --- a/db/dbhelpers.cpp +++ b/db/dbhelpers.cpp @@ -131,7 +131,7 @@ namespace mongo { QueryPlanSet s( ns, query, BSONObj(), 0, !requireIndex ); FindOne original( requireIndex ); shared_ptr< FindOne > res = s.runOp( original ); - massert( res->exceptionMessage(), res->complete() ); + massert( 10302 , res->exceptionMessage(), res->complete() ); if ( res->one().isEmpty() ) return false; result = res->one(); @@ -139,7 +139,7 @@ namespace mongo { } auto_ptr<CursorIterator> Helpers::find( const char *ns , BSONObj query , bool requireIndex ){ - uassert( "requireIndex not supported in Helpers::find yet" , ! requireIndex ); + uassert( 10047 , "requireIndex not supported in Helpers::find yet" , ! requireIndex ); auto_ptr<CursorIterator> i; i.reset( new CursorIterator( DataFileMgr::findAll( ns ) , query ) ); return i; @@ -216,7 +216,7 @@ namespace mongo { Helpers::emptyCollection( name_.c_str() ); } else { string err; - massert( err, userCreateNS( name_.c_str(), fromjson( "{autoIndexId:false}" ), err, false ) ); + massert( 10303 , err, userCreateNS( name_.c_str(), fromjson( "{autoIndexId:false}" ), err, false ) ); } Helpers::ensureIndex( name_.c_str(), key_, true, "setIdx" ); } |