diff options
| author | Apollon Oikonomopoulos <apoikos@debian.org> | 2016-01-14 00:10:06 +0200 |
|---|---|---|
| committer | Apollon Oikonomopoulos <apollon@skroutz.gr> | 2016-01-14 00:10:06 +0200 |
| commit | 374e1947abcd3e127a2a613aff73ecffdb9199ea (patch) | |
| tree | d83973c3c9802450acd5b5e86fe0d4e8e60a3a1b /src/mongo/client/examples/clientTest.cpp | |
| parent | 65585c90b12d6523bea75a2aebaae2a2fdf9e641 (diff) | |
Imported Upstream version 2.6.11upstream/2.6.11
Diffstat (limited to 'src/mongo/client/examples/clientTest.cpp')
| -rw-r--r-- | src/mongo/client/examples/clientTest.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/client/examples/clientTest.cpp b/src/mongo/client/examples/clientTest.cpp index 8d8bd23a131..ab136b326a8 100644 --- a/src/mongo/client/examples/clientTest.cpp +++ b/src/mongo/client/examples/clientTest.cpp @@ -42,6 +42,12 @@ int main( int argc, const char **argv ) { port = argv[ 2 ]; } + Status status = client::initialize(); + if ( !status.isOK() ) { + std::cout << "failed to initialize the client driver: " << status.toString() << endl; + return EXIT_FAILURE; + } + DBClientConnection conn; string errmsg; if ( ! conn.connect( string( "127.0.0.1:" ) + port , errmsg ) ) { |
