diff options
author | Jason Carey <jcarey@argv.me> | 2019-01-23 16:37:35 -0500 |
---|---|---|
committer | Jason Carey <jcarey@argv.me> | 2019-02-10 12:23:18 -0500 |
commit | c922cb18516981ceca59993331296d102f4e01fb (patch) | |
tree | a066a8b4d05cb37b1dee9dde34d9366f6ece0a2f /src/mongo/db/operation_context.h | |
parent | c467b79f46ea23f40669eb06f0d2698bc640c997 (diff) | |
download | mongo-c922cb18516981ceca59993331296d102f4e01fb.tar.gz |
SERVER-39150 markKillOnClientDisconnect
Diffstat (limited to 'src/mongo/db/operation_context.h')
-rw-r--r-- | src/mongo/db/operation_context.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/operation_context.h b/src/mongo/db/operation_context.h index f376a98e048..c600218da4f 100644 --- a/src/mongo/db/operation_context.h +++ b/src/mongo/db/operation_context.h @@ -237,6 +237,8 @@ public: return _writesAreReplicated; } + void markKillOnClientDisconnect(); + /** * Marks this operation as killed so that subsequent calls to checkForInterrupt and * checkForInterruptNoAssert by the thread executing the operation will start returning the @@ -463,6 +465,8 @@ private: ErrorCodes::Error _timeoutError = ErrorCodes::ExceededTimeLimit; bool _ignoreInterrupts = false; bool _hasArtificialDeadline = false; + bool _markKillOnClientDisconnect = false; + Date_t _lastClientCheck; // Max operation time requested by the user or by the cursor in the case of a getMore with no // user-specified maxTime. This is tracked with microsecond granularity for the purpose of |