summaryrefslogtreecommitdiff
path: root/src/mongo/s/request.cpp
diff options
context:
space:
mode:
authorAlberto Lerner <alberto.lerner@gmail.com>2012-06-11 14:40:21 -0400
committerAlberto Lerner <alberto.lerner@gmail.com>2012-06-11 14:40:55 -0400
commit1f02c2d4f3350cea1f28a889283c25083b6bcf4e (patch)
treefe8de7005977b2d23822775da015314c58f619e2 /src/mongo/s/request.cpp
parent629e6583fa56b5689fb80192896a050e85f3edba (diff)
downloadmongo-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.cpp7
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 {