summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2011-04-28 12:02:52 -0400
committerEliot Horowitz <eliot@10gen.com>2011-04-28 12:02:52 -0400
commit6cdeee14b96378e9082dc18914ac2478c5901174 (patch)
treed0f4e42fccca8ee45aa3299dd9ddc94801319719
parent6543ca6e0f5c060f80e5945b190406c24a3a7677 (diff)
downloadmongo-6cdeee14b96378e9082dc18914ac2478c5901174.tar.gz
nicer assert for unopened connection
-rw-r--r--client/dbclient.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/dbclient.h b/client/dbclient.h
index 5d6d87cc129..03030a3c6be 100644
--- a/client/dbclient.h
+++ b/client/dbclient.h
@@ -884,7 +884,7 @@ namespace mongo {
*/
bool isFailed() const { return _failed; }
- MessagingPort& port() { return *p; }
+ MessagingPort& port() { assert(p); return *p; }
string toStringLong() const {
stringstream ss;