diff options
author | Ian Boros <ian.boros@10gen.com> | 2018-01-22 16:15:05 -0500 |
---|---|---|
committer | Ian Boros <ian.boros@10gen.com> | 2018-02-20 10:36:24 -0500 |
commit | 2558b58366d5807af06e7cd8e36142d338350600 (patch) | |
tree | 57320e1fe48c8a5551d5d6b8ac4919b41ee8f40c /src/mongo/s/query/cluster_client_cursor_impl.cpp | |
parent | 2ae87330910dd7af58507c77d0363d267be8381e (diff) | |
download | mongo-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.cpp | 4 |
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; } |