diff options
author | Matt Dannenberg <matt.dannenberg@10gen.com> | 2013-06-29 21:58:07 -0400 |
---|---|---|
committer | Matt Dannenberg <matt.dannenberg@10gen.com> | 2013-06-29 22:32:38 -0400 |
commit | 83ecb9775b7997dd5115c53f6ea30d2e368a4244 (patch) | |
tree | 51f3a6cc6664bf9601f0bef9247bbf08643c7391 /src/mongo/db/repl/oplogreader.h | |
parent | babd275f88181c3f2cd29585816aab24bc4b421c (diff) | |
download | mongo-83ecb9775b7997dd5115c53f6ea30d2e368a4244.tar.gz |
SERVER-6071 use command on local.slaves instead of cursor
Diffstat (limited to 'src/mongo/db/repl/oplogreader.h')
-rw-r--r-- | src/mongo/db/repl/oplogreader.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/db/repl/oplogreader.h b/src/mongo/db/repl/oplogreader.h index 801b9a4854e..345dc2be9ee 100644 --- a/src/mongo/db/repl/oplogreader.h +++ b/src/mongo/db/repl/oplogreader.h @@ -50,6 +50,9 @@ namespace mongo { return findOne(ns, Query().sort(reverseNaturalObj)); } + /* SO_TIMEOUT (send/recv time out) for our DBClientConnections */ + static const int tcp_timeout = 30; + /* ok to call if already connected */ bool connect(const std::string& hostname); |