diff options
author | Martin Neupauer <martin.neupauer@mongodb.com> | 2018-01-18 12:04:01 -0500 |
---|---|---|
committer | Martin Neupauer <martin.neupauer@mongodb.com> | 2018-01-31 15:05:08 -0500 |
commit | 15a7ac9ca54f2d580e2b1d1ab01fe095be1233db (patch) | |
tree | c3628b0d5be60aa6bd911c8c351daa9606f6b060 /src/mongo/db/operation_context.h | |
parent | 3c349c50d8d5a55fa80c1d7ae3ac6a6f6cc82b5e (diff) | |
download | mongo-15a7ac9ca54f2d580e2b1d1ab01fe095be1233db.tar.gz |
SERVER-31484 separate the operation deadline from awaitData deadline in sharded queries.
The deadline has been been already separated for non-sharded queries.
Diffstat (limited to 'src/mongo/db/operation_context.h')
-rw-r--r-- | src/mongo/db/operation_context.h | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/mongo/db/operation_context.h b/src/mongo/db/operation_context.h index 915b8060981..e0228810713 100644 --- a/src/mongo/db/operation_context.h +++ b/src/mongo/db/operation_context.h @@ -84,28 +84,6 @@ public: kFailedUnitOfWork // in a unit of work that has failed and must be aborted }; - /** - * An RAII type that will temporarily suspend any deadline on this operation. Resets the - * deadline to the previous value upon destruction. - */ - class DeadlineStash { - public: - /** - * Clears any deadline set on this operation. - */ - DeadlineStash(OperationContext* opCtx); - - /** - * Resets the deadline on '_opCtx' to the original deadline present at the time this - * DeadlineStash was constructed. - */ - ~DeadlineStash(); - - private: - OperationContext* _opCtx; - Date_t _originalDeadline; - }; - OperationContext(Client* client, unsigned int opId); virtual ~OperationContext() = default; @@ -464,7 +442,6 @@ private: _writesAreReplicated = writesAreReplicated; } - friend class DeadlineStash; friend class WriteUnitOfWork; friend class repl::UnreplicatedWritesBlock; Client* const _client; |