From a3909e15cf23edff53fdeb2ac3203e05d5ed9737 Mon Sep 17 00:00:00 2001 From: Tess Avitabile Date: Mon, 12 Mar 2018 12:15:25 -0400 Subject: SERVER-33689 killCursors on snapshot read cursor should free stashed transaction resources --- src/mongo/db/concurrency/locker.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mongo/db/concurrency/locker.h') 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; -- cgit v1.2.1