summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/oplogreader.h
diff options
context:
space:
mode:
authorMatt Dannenberg <matt.dannenberg@10gen.com>2013-06-29 21:58:07 -0400
committerMatt Dannenberg <matt.dannenberg@10gen.com>2013-06-29 22:32:38 -0400
commit83ecb9775b7997dd5115c53f6ea30d2e368a4244 (patch)
tree51f3a6cc6664bf9601f0bef9247bbf08643c7391 /src/mongo/db/repl/oplogreader.h
parentbabd275f88181c3f2cd29585816aab24bc4b421c (diff)
downloadmongo-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.h3
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);