diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2018-12-14 15:30:08 -0500 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2018-12-18 22:27:32 -0500 |
commit | 20d857c7609bd2e7cbba5649bd943a7073ea1509 (patch) | |
tree | 0e9b72019fa3ecf9653d1522d2086b4e92123e81 /src/mongo/db/operation_context.h | |
parent | 4f1e7fb94ce21e21b05dd49c4ed46e6c5231bd2a (diff) | |
download | mongo-20d857c7609bd2e7cbba5649bd943a7073ea1509.tar.gz |
SERVER-38677 Remove the invalidations counter from TransactionParticipant
Diffstat (limited to 'src/mongo/db/operation_context.h')
-rw-r--r-- | src/mongo/db/operation_context.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/mongo/db/operation_context.h b/src/mongo/db/operation_context.h index 92845652984..df8694b0e05 100644 --- a/src/mongo/db/operation_context.h +++ b/src/mongo/db/operation_context.h @@ -79,8 +79,7 @@ class OperationContext : public Interruptible, public Decorable<OperationContext public: OperationContext(Client* client, unsigned int opId); - - virtual ~OperationContext() = default; + virtual ~OperationContext(); /** * Interface for durability. Caller DOES NOT own pointer. @@ -164,7 +163,7 @@ public: /** * Returns the session ID associated with this operation, if there is one. */ - boost::optional<LogicalSessionId> getLogicalSessionId() const { + const boost::optional<LogicalSessionId>& getLogicalSessionId() const { return _lsid; } @@ -407,7 +406,9 @@ private: friend class WriteUnitOfWork; friend class repl::UnreplicatedWritesBlock; + Client* const _client; + const unsigned int _opId; boost::optional<LogicalSessionId> _lsid; @@ -447,8 +448,8 @@ private: WriteConcernOptions _writeConcern; - Date_t _deadline = - Date_t::max(); // The timepoint at which this operation exceeds its time limit. + // The timepoint at which this operation exceeds its time limit. + Date_t _deadline = Date_t::max(); ErrorCodes::Error _timeoutError = ErrorCodes::ExceededTimeLimit; bool _ignoreInterrupts = false; |