diff options
author | Steve Tarzia <steve.tarzia@mongodb.com> | 2023-01-27 16:07:12 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-01-27 18:05:23 +0000 |
commit | 212db59da7d7c745acbb7c038b16f714b8ca7bbe (patch) | |
tree | aa1d7df21e4a05c7a4a3f3f321e46f45be666f17 /src/mongo/db/operation_context.h | |
parent | 0cda04054daf0d896fdb9b7424d79cfd0c4a7724 (diff) | |
download | mongo-212db59da7d7c745acbb7c038b16f714b8ca7bbe.tar.gz |
SERVER-71440 Remove OpCtx::setIgnoreInterruptsExceptForReplStateChange
Diffstat (limited to 'src/mongo/db/operation_context.h')
-rw-r--r-- | src/mongo/db/operation_context.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/mongo/db/operation_context.h b/src/mongo/db/operation_context.h index 95e561646cc..ef4b4a29056 100644 --- a/src/mongo/db/operation_context.h +++ b/src/mongo/db/operation_context.h @@ -515,14 +515,6 @@ public: } /** - * Sets that this operation should ignore interruption except for replication state change. Can - * only be called by the thread executing this on behalf of this OperationContext. - */ - void setIgnoreInterruptsExceptForReplStateChange(bool target) { - _ignoreInterruptsExceptForReplStateChange = target; - } - - /** * Clears metadata associated with a multi-document transaction. */ void resetMultiDocumentTransactionState() { @@ -688,16 +680,6 @@ private: } /** - * Returns true if ignoring interrupts other than repl state change and no repl state change - * has occurred. - */ - bool _noReplStateChangeWhileIgnoringOtherInterrupts() const { - return _ignoreInterruptsExceptForReplStateChange && - getKillStatus() != ErrorCodes::InterruptedDueToReplStateChange && - !_killRequestedForReplStateChange.loadRelaxed(); - } - - /** * Returns true if this operation has a deadline and it has passed according to the fast clock * on ServiceContext. */ @@ -800,7 +782,6 @@ private: bool _shouldIncrementLatencyStats = true; bool _inMultiDocumentTransaction = false; bool _isStartingMultiDocumentTransaction = false; - bool _ignoreInterruptsExceptForReplStateChange = false; // Commands from user applications must run validations and enforce constraints. Operations from // a trusted source, such as initial sync or consuming an oplog entry generated by a primary // typically desire to ignore constraints. |