diff options
author | Tess Avitabile <tess.avitabile@mongodb.com> | 2018-05-18 15:46:09 -0400 |
---|---|---|
committer | Tess Avitabile <tess.avitabile@mongodb.com> | 2018-05-18 17:04:36 -0400 |
commit | 6ab1592260c9b21d802aa65a11d268c0a97b11a7 (patch) | |
tree | c0bf5ec600ebd81bcd71ca2fd4c99ba3fdfa5921 /src/mongo/db/concurrency/lock_state.h | |
parent | 59239fadc01de57490a56990ee125a1ea44fb126 (diff) | |
download | mongo-6ab1592260c9b21d802aa65a11d268c0a97b11a7.tar.gz |
SERVER-34726 Lock acquisitions for profiling in transaction have 0 second timeout
Diffstat (limited to 'src/mongo/db/concurrency/lock_state.h')
-rw-r--r-- | src/mongo/db/concurrency/lock_state.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/concurrency/lock_state.h b/src/mongo/db/concurrency/lock_state.h index 7a5d68e6ebf..0cf5081fb6b 100644 --- a/src/mongo/db/concurrency/lock_state.h +++ b/src/mongo/db/concurrency/lock_state.h @@ -122,6 +122,10 @@ public: _maxLockTimeout = maxTimeout; } + bool hasMaxLockTimeout() override { + return static_cast<bool>(_maxLockTimeout); + } + void unsetMaxLockTimeout() override { _maxLockTimeout = boost::none; } |