diff options
author | unknown <Administrator@.(none)> | 2008-10-29 16:48:03 -0500 |
---|---|---|
committer | unknown <Administrator@.(none)> | 2008-10-29 16:48:03 -0500 |
commit | 9bc872695d6bd2875e4e7b050780ee074691981b (patch) | |
tree | 882173843669f815b02508d8020d4ab9406ecd47 /client | |
parent | 1875ee8151c15677c7396b15a715be99b8f1ee62 (diff) | |
download | mongo-9bc872695d6bd2875e4e7b050780ee074691981b.tar.gz |
catch asserts and report error to client on a query
various dbgrid work incremental
background job class
Diffstat (limited to 'client')
-rw-r--r-- | client/dbclient.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/client/dbclient.cpp b/client/dbclient.cpp index f0529e7ea1d..22073c23edc 100644 --- a/client/dbclient.cpp +++ b/client/dbclient.cpp @@ -71,6 +71,7 @@ bool DBClientConnection::connect(const char *_serverAddress, string& errmsg) { // requires that? server = auto_ptr<SockAddr>(new SockAddr(ip.c_str(), port)); p = auto_ptr<MessagingPort>(new MessagingPort()); + if( !p->connect(*server) ) { errmsg = string("couldn't connect to server ") + serverAddress + ' ' + ip; failed = true; |