summaryrefslogtreecommitdiff
path: root/src/mongo/s/query/cluster_client_cursor.h
diff options
context:
space:
mode:
authorEsha Maharishi <esha.maharishi@mongodb.com>2017-02-09 15:08:31 -0500
committerEsha Maharishi <esha.maharishi@mongodb.com>2017-02-09 18:19:26 -0500
commit31e5c31a79b2043d0fa4288c0435fdfce4348343 (patch)
tree8c02d5cc58ea067dbc5af6722eccdf16707a9b9c /src/mongo/s/query/cluster_client_cursor.h
parent0e3e4b1dbb3fa475abc29033171e26d194028391 (diff)
downloadmongo-31e5c31a79b2043d0fa4288c0435fdfce4348343.tar.gz
SERVER-27965 thread OperationContext* down through ClusterClientCursor's next() and kill() methods
Diffstat (limited to 'src/mongo/s/query/cluster_client_cursor.h')
-rw-r--r--src/mongo/s/query/cluster_client_cursor.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/mongo/s/query/cluster_client_cursor.h b/src/mongo/s/query/cluster_client_cursor.h
index c4bb1c9373e..46b92eab642 100644
--- a/src/mongo/s/query/cluster_client_cursor.h
+++ b/src/mongo/s/query/cluster_client_cursor.h
@@ -64,7 +64,7 @@ public:
*
* A non-ok status is returned in case of any error.
*/
- virtual StatusWith<ClusterQueryResult> next() = 0;
+ virtual StatusWith<ClusterQueryResult> next(OperationContext* txn) = 0;
/**
* Must be called before destruction to abandon a not-yet-exhausted cursor. If next() has
@@ -72,7 +72,7 @@ public:
*
* May block waiting for responses from remote hosts.
*/
- virtual void kill() = 0;
+ virtual void kill(OperationContext* txn) = 0;
/**
* Returns whether or not this cursor is tailing a capped collection on a shard.
@@ -108,13 +108,6 @@ public:
* the cursor is not tailable + awaitData).
*/
virtual Status setAwaitDataTimeout(Milliseconds awaitDataTimeout) = 0;
-
- /**
- * Update the operation context for remote requests.
- *
- * Network requests depend on having a valid operation context for user initiated actions.
- */
- virtual void setOperationContext(OperationContext* txn) = 0;
};
} // namespace mongo