diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-04-27 16:49:22 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-04-27 16:49:22 -0400 |
commit | 92b48ea825815709fdd27466c5f90b4d412cbdf4 (patch) | |
tree | 86b55936a6c95dddf4b1403b6dc01d6c6a430624 /s/request.h | |
parent | 2b1665670d93234527f3e70a7b62e5f5b185dd23 (diff) | |
download | mongo-92b48ea825815709fdd27466c5f90b4d412cbdf4.tar.gz |
whatsmyuri support for mongos
Diffstat (limited to 's/request.h')
-rw-r--r-- | s/request.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/s/request.h b/s/request.h index bf46824ef4c..13e5d5ad71d 100644 --- a/s/request.h +++ b/s/request.h @@ -108,16 +108,20 @@ namespace mongo { ClientInfo( int clientId ); ~ClientInfo(); + string getRemote() const { return _remote; } + void addShard( const string& shard ); set<string> * getPrev() const { return _prev; }; - void newRequest(); + void newRequest( AbstractMessagingPort* p = 0 ); void disconnect(); - + static ClientInfo * get( int clientId = 0 , bool create = true ); private: int _id; + string _remote; + set<string> _a; set<string> _b; set<string> * _cur; |