diff options
author | Alberto Lerner <alberto.lerner@gmail.com> | 2012-06-11 14:40:21 -0400 |
---|---|---|
committer | Alberto Lerner <alberto.lerner@gmail.com> | 2012-06-11 14:40:55 -0400 |
commit | 1f02c2d4f3350cea1f28a889283c25083b6bcf4e (patch) | |
tree | fe8de7005977b2d23822775da015314c58f619e2 /src/mongo/s/request.cpp | |
parent | 629e6583fa56b5689fb80192896a050e85f3edba (diff) | |
download | mongo-1f02c2d4f3350cea1f28a889283c25083b6bcf4e.tar.gz |
Requests may exist for which the MessagingPort is null.
Diffstat (limited to 'src/mongo/s/request.cpp')
-rw-r--r-- | src/mongo/s/request.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mongo/s/request.cpp b/src/mongo/s/request.cpp index 6194bd8fea0..27158759b6f 100644 --- a/src/mongo/s/request.cpp +++ b/src/mongo/s/request.cpp @@ -42,7 +42,12 @@ namespace mongo { _id = _m.header()->id; _clientInfo = ClientInfo::get(); - _clientInfo->newPeerRequest( p->remote() ); + if ( p ) { + _clientInfo->newPeerRequest( p->remote() ); + } + else { + _clientInfo->newRequest(); + } } void Request::checkAuth( Auth::Level levelNeeded , const char * need ) const { |