diff options
author | Ian Boros <ian.boros@10gen.com> | 2018-02-01 13:32:49 -0500 |
---|---|---|
committer | Ian Boros <ian.boros@10gen.com> | 2018-02-13 18:30:23 -0500 |
commit | 30e5dded30c373f9519e4c5347f7a92a9fa2d59f (patch) | |
tree | 5f99bc229e5befa0f1e8afbbfd61103fe9a28641 /src/mongo/s/query/router_exec_stage.h | |
parent | f8af7207e2359a119b29b6d4e4c6945cc0bf1a8a (diff) | |
download | mongo-30e5dded30c373f9519e4c5347f7a92a9fa2d59f.tar.gz |
SERVER-28090 add ability to interrupt pinned cursors on mongos
Diffstat (limited to 'src/mongo/s/query/router_exec_stage.h')
-rw-r--r-- | src/mongo/s/query/router_exec_stage.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mongo/s/query/router_exec_stage.h b/src/mongo/s/query/router_exec_stage.h index 5690772dc2b..418419fdbef 100644 --- a/src/mongo/s/query/router_exec_stage.h +++ b/src/mongo/s/query/router_exec_stage.h @@ -141,6 +141,13 @@ public: doDetachFromOperationContext(); } + /** + * Returns a pointer to the current OperationContext, or nullptr if there is no context. + */ + OperationContext* getOpCtx() { + return _opCtx; + } + protected: /** * Performs any stage-specific reattach actions. Called after the OperationContext has been set @@ -168,13 +175,6 @@ protected: return _child.get(); } - /** - * Returns a pointer to the current OperationContext, or nullptr if there is no context. - */ - OperationContext* getOpCtx() { - return _opCtx; - } - private: OperationContext* _opCtx = nullptr; std::unique_ptr<RouterExecStage> _child; |