summaryrefslogtreecommitdiff
path: root/src/mongo/s/query/cluster_client_cursor_impl.cpp
diff options
context:
space:
mode:
authorIan Boros <ian.boros@10gen.com>2018-01-22 16:15:05 -0500
committerIan Boros <ian.boros@10gen.com>2018-02-20 10:36:24 -0500
commit2558b58366d5807af06e7cd8e36142d338350600 (patch)
tree57320e1fe48c8a5551d5d6b8ac4919b41ee8f40c /src/mongo/s/query/cluster_client_cursor_impl.cpp
parent2ae87330910dd7af58507c77d0363d267be8381e (diff)
downloadmongo-2558b58366d5807af06e7cd8e36142d338350600.tar.gz
SERVER-32957 part 1: mongos will now destroy kill pending cursors on checkin
Diffstat (limited to 'src/mongo/s/query/cluster_client_cursor_impl.cpp')
-rw-r--r--src/mongo/s/query/cluster_client_cursor_impl.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/s/query/cluster_client_cursor_impl.cpp b/src/mongo/s/query/cluster_client_cursor_impl.cpp
index daaf85a6f6f..e555f1d32e8 100644
--- a/src/mongo/s/query/cluster_client_cursor_impl.cpp
+++ b/src/mongo/s/query/cluster_client_cursor_impl.cpp
@@ -130,6 +130,10 @@ void ClusterClientCursorImpl::detachFromOperationContext() {
_root->detachFromOperationContext();
}
+OperationContext* ClusterClientCursorImpl::getCurrentOperationContext() const {
+ return _opCtx;
+}
+
bool ClusterClientCursorImpl::isTailable() const {
return _params.tailableMode != TailableMode::kNormal;
}