~james-page/ubuntu/precise/mongodb/arch-enablement

« back to all changes in this revision

Viewing changes to db/repl.cpp

  • Committer: Package Import Robot
  • Author(s): Antonin Kral
  • Date: 2012-06-05 19:52:28 UTC
  • mfrom: (1.2.18)
  • Revision ID: package-import@ubuntu.com-20120605195228-y35631zus0oblqd7
Tags: 1:2.0.6-1
New upstream release 2.0.6
https://jira.mongodb.org/browse/SERVER/fixforversion/11165

Show diffs side-by-side

added added

removed removed

Lines of Context:
1115
1115
 
1116
1116
    bool OplogReader::commonConnect(const string& hostName) {
1117
1117
        if( conn() == 0 ) {
1118
 
            _conn = shared_ptr<DBClientConnection>(new DBClientConnection( false, 0, 0 /* tcp timeout */));
 
1118
            _conn = shared_ptr<DBClientConnection>(new DBClientConnection( false, 0, 60*10 /* tcp timeout */));
1119
1119
            string errmsg;
1120
1120
            ReplInfo r("trying to connect to sync source");
1121
1121
            if ( !_conn->connect(hostName.c_str(), errmsg) ||