summaryrefslogtreecommitdiff
path: root/s/request.h
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-02-17 11:41:34 -0500
committerEliot Horowitz <eliot@10gen.com>2009-02-17 11:41:34 -0500
commitea976ed9fac6a79c1c4deca12f1ce717f4707c18 (patch)
tree92f2549c9925a4cf14ec2f6d29dc431f4580310e /s/request.h
parent64027ed89779b2cd30174edaba1a557e41836870 (diff)
downloadmongo-ea976ed9fac6a79c1c4deca12f1ce717f4707c18.tar.gz
name cleaning
Diffstat (limited to 's/request.h')
-rw-r--r--s/request.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/s/request.h b/s/request.h
index cd9cfa621e1..3919211f516 100644
--- a/s/request.h
+++ b/s/request.h
@@ -29,6 +29,12 @@ namespace mongo {
return _config->getPrimary().c_str();
}
+ string singleServerName(){
+ string s = _config->getServer( getns() );
+ uassert( "sharded!" , s.size() > 0 );
+ return s;
+ }
+
void reply( Message & response ){
_p.reply( _m , response , _id );
}