summaryrefslogtreecommitdiff
path: root/s/request.cpp
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-12-28 16:43:43 -0500
committerEliot Horowitz <eliot@10gen.com>2009-12-28 16:43:43 -0500
commit0ab8149a8e9e900b63ee28b9590a249578339376 (patch)
tree564a5c516b7c308964b79ea761e4800efe26d252 /s/request.cpp
parent95137f262c2a57831dccf058428a2f64e900496e (diff)
downloadmongo-0ab8149a8e9e900b63ee28b9590a249578339376.tar.gz
uassert/massert take error code SERVER-112
Diffstat (limited to 's/request.cpp')
-rw-r--r--s/request.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/s/request.cpp b/s/request.cpp
index 1ce0174648e..ba48d6bd7af 100644
--- a/s/request.cpp
+++ b/s/request.cpp
@@ -47,11 +47,11 @@ namespace mongo {
void Request::reset( bool reload ){
_config = grid.getDBConfig( getns() );
if ( reload )
- uassert( "db config reload failed!" , _config->reload() );
+ uassert( 10192 , "db config reload failed!" , _config->reload() );
if ( _config->isSharded( getns() ) ){
_chunkManager = _config->getChunkManager( getns() , reload );
- uassert( (string)"no shard info for: " + getns() , _chunkManager );
+ uassert( 10193 , (string)"no shard info for: " + getns() , _chunkManager );
}
else {
_chunkManager = 0;
@@ -68,7 +68,7 @@ namespace mongo {
return _chunkManager->findChunk( _chunkManager->getShardKey().globalMin() ).getShard();
}
string s = _config->getShard( getns() );
- uassert( "can't call singleServerName on a sharded collection!" , s.size() > 0 );
+ uassert( 10194 , "can't call singleServerName on a sharded collection!" , s.size() > 0 );
return s;
}
@@ -93,7 +93,7 @@ namespace mongo {
}
catch ( StaleConfigException& staleConfig ){
log() << staleConfig.what() << " attempt: " << attempt << endl;
- uassert( "too many attempts to update config, failing" , attempt < 5 );
+ uassert( 10195 , "too many attempts to update config, failing" , attempt < 5 );
sleepsecs( attempt );
reset( true );