summaryrefslogtreecommitdiff
path: root/s/chunk.cpp
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-12-28 17:06:07 -0500
committerEliot Horowitz <eliot@10gen.com>2009-12-28 17:06:07 -0500
commitfa8961c3e8804a2fd606160d7649e973e906d0b4 (patch)
tree7b05dab00035f95e55fb131f38a15a06e7281a16 /s/chunk.cpp
parenta3a0bc64f9082d712d8a0789811257ad45a6cb0b (diff)
downloadmongo-fa8961c3e8804a2fd606160d7649e973e906d0b4.tar.gz
Exception classess need codes too SERVER-112
Diffstat (limited to 's/chunk.cpp')
-rw-r--r--s/chunk.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/s/chunk.cpp b/s/chunk.cpp
index 9b757a77368..47c13e8eac1 100644
--- a/s/chunk.cpp
+++ b/s/chunk.cpp
@@ -446,7 +446,7 @@ namespace mongo {
}
stringstream ss;
ss << "couldn't find a chunk which should be impossible extracted: " << _key.extractKey( obj );
- throw UserException( ss.str() );
+ throw UserException( 8070 , ss.str() );
}
Chunk* ChunkManager::findChunkOnServer( const string& server ) const {
@@ -544,7 +544,7 @@ namespace mongo {
ScopedDbConnection conn( i->first );
BSONObj res;
if ( ! setShardVersion( conn.conn() , _ns , 0 , true , res ) )
- throw UserException( (string)"OH KNOW, cleaning up after drop failed: " + res.toString() );
+ throw UserException( 8071 , (string)"OH KNOW, cleaning up after drop failed: " + res.toString() );
conn.done();
}