summaryrefslogtreecommitdiff
path: root/src/mongo/db/client.h
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2012-03-26 12:58:35 -0400
committerEliot Horowitz <eliot@10gen.com>2012-03-26 12:58:52 -0400
commitbd6d0c99195e324e14390205e2bc6ff88c01e365 (patch)
treef9306b37b7d3302b4dd6e5f628fcf9886a09cf15 /src/mongo/db/client.h
parenta56eef7bd9a5d390182ea64118e11420b052a380 (diff)
downloadmongo-bd6d0c99195e324e14390205e2bc6ff88c01e365.tar.gz
replace assert with verify SERVER-1259
Diffstat (limited to 'src/mongo/db/client.h')
-rw-r--r--src/mongo/db/client.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/client.h b/src/mongo/db/client.h
index a277a97ec89..7dc4376868d 100644
--- a/src/mongo/db/client.h
+++ b/src/mongo/db/client.h
@@ -110,7 +110,7 @@ namespace mongo {
string toString() const;
void gotHandshake( const BSONObj& o );
bool hasRemote() const { return _mp; }
- HostAndPort getRemote() const { assert( _mp ); return _mp->remote(); }
+ HostAndPort getRemote() const { verify( _mp ); return _mp->remote(); }
BSONObj getRemoteID() const { return _remoteId; }
BSONObj getHandshake() const { return _handshake; }
AbstractMessagingPort * port() const { return _mp; }
@@ -240,7 +240,7 @@ namespace mongo {
/** get the Client object for this thread. */
inline Client& cc() {
Client * c = currentClient.get();
- assert( c );
+ verify( c );
return *c;
}