summaryrefslogtreecommitdiff
path: root/s/shard.cpp
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2011-02-16 12:25:50 -0500
committerEliot Horowitz <eliot@10gen.com>2011-02-16 14:40:25 -0500
commitd5927efbbd45bd33a8ac6dbd0874f2dc900eb542 (patch)
treee709310a071589b1c0e75f48ee0b2a759077a6d4 /s/shard.cpp
parenteae007bd5709f0e4e4d49fe345f0dad442320348 (diff)
downloadmongo-d5927efbbd45bd33a8ac6dbd0874f2dc900eb542.tar.gz
better assert
Diffstat (limited to 's/shard.cpp')
-rw-r--r--s/shard.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/s/shard.cpp b/s/shard.cpp
index 9a26457bb33..fa8798d4f0d 100644
--- a/s/shard.cpp
+++ b/s/shard.cpp
@@ -110,7 +110,7 @@ namespace mongo {
scoped_lock lk( _mutex );
map<string,Shard>::iterator i = _lookup.find( mykey );
- uassert( 13129 , (string)"can't find shard for: " + mykey , i != _lookup.end() );
+ massert( 13129 , (string)"can't find shard for: " + mykey , i != _lookup.end() );
return i->second;
}
@@ -204,7 +204,7 @@ namespace mongo {
void Shard::reset( const string& ident ) {
const Shard& s = staticShardInfo.find( ident );
- uassert( 13128 , (string)"can't find shard for: " + ident , s.ok() );
+ massert( 13128 , (string)"can't find shard for: " + ident , s.ok() );
_name = s._name;
_addr = s._addr;
_cs = s._cs;