diff options
author | Tess Avitabile <tess.avitabile@mongodb.com> | 2018-03-12 12:15:25 -0400 |
---|---|---|
committer | Tess Avitabile <tess.avitabile@mongodb.com> | 2018-03-13 17:16:38 -0400 |
commit | a3909e15cf23edff53fdeb2ac3203e05d5ed9737 (patch) | |
tree | 60e9ef4b06ce0a32e02593272fb095767fa5600c /src/mongo/db/concurrency/locker.h | |
parent | 136afe99292bdc5a1e2291b7e53a7c660f4544c3 (diff) | |
download | mongo-a3909e15cf23edff53fdeb2ac3203e05d5ed9737.tar.gz |
SERVER-33689 killCursors on snapshot read cursor should free stashed transaction resources
Diffstat (limited to 'src/mongo/db/concurrency/locker.h')
-rw-r--r-- | src/mongo/db/concurrency/locker.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/concurrency/locker.h b/src/mongo/db/concurrency/locker.h index 27d03e6c1ec..d90b8916289 100644 --- a/src/mongo/db/concurrency/locker.h +++ b/src/mongo/db/concurrency/locker.h @@ -170,8 +170,8 @@ public: virtual void downgradeGlobalXtoSForMMAPV1() = 0; /** - * beginWriteUnitOfWork/endWriteUnitOfWork must only be called by WriteUnitOfWork. See - * comments there for the semantics of units of work. + * beginWriteUnitOfWork/endWriteUnitOfWork are called at the start and end of WriteUnitOfWorks. + * They can be used to implement two-phase locking. */ virtual void beginWriteUnitOfWork() = 0; virtual void endWriteUnitOfWork() = 0; |