summaryrefslogtreecommitdiff
path: root/src/mongo/s/query/router_exec_stage.h
diff options
context:
space:
mode:
authorDavid Storch <david.storch@10gen.com>2015-10-30 13:15:39 -0400
committerDavid Storch <david.storch@10gen.com>2015-11-05 11:26:56 -0500
commit5b34689a84b969affc822e014e44816959ca460b (patch)
tree29f16d4988fbad4f5c62892fd253cbe90d02b3fa /src/mongo/s/query/router_exec_stage.h
parent5edafdbf6ca1effcb18d62c8e53b37544afecfcc (diff)
downloadmongo-5b34689a84b969affc822e014e44816959ca460b.tar.gz
SERVER-21218 make mongos forward maxTimeMS on getMore command to mongod
Diffstat (limited to 'src/mongo/s/query/router_exec_stage.h')
-rw-r--r--src/mongo/s/query/router_exec_stage.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mongo/s/query/router_exec_stage.h b/src/mongo/s/query/router_exec_stage.h
index 68e12b7f1f6..deb4bf34f9f 100644
--- a/src/mongo/s/query/router_exec_stage.h
+++ b/src/mongo/s/query/router_exec_stage.h
@@ -33,6 +33,7 @@
#include "mongo/base/status_with.h"
#include "mongo/bson/bsonobj.h"
+#include "mongo/util/time_support.h"
namespace mongo {
@@ -71,6 +72,15 @@ public:
*/
virtual bool remotesExhausted() = 0;
+ /**
+ * Sets the maxTimeMS value that the cursor should forward with any internally issued getMore
+ * requests.
+ *
+ * Returns a non-OK status if this cursor type does not support maxTimeMS on getMore (i.e. if
+ * the cursor is not tailable + awaitData).
+ */
+ virtual Status setAwaitDataTimeout(Milliseconds awaitDataTimeout) = 0;
+
protected:
/**
* Returns an unowned pointer to the child stage, or nullptr if there is no child.