diff options
author | James Wahlin <james.wahlin@10gen.com> | 2016-10-26 16:10:16 -0400 |
---|---|---|
committer | James Wahlin <james.wahlin@10gen.com> | 2016-11-02 16:31:58 -0400 |
commit | fd16deb6dd3d08756f15c181facc707cb53f4e15 (patch) | |
tree | a0ccd2a6a9e46f5d31a50a635034c4ed9b821313 /src/mongo/db/instance.cpp | |
parent | 17ffe1f8b38f0aaa5c9cd097a6516daf3161ed6d (diff) | |
download | mongo-fd16deb6dd3d08756f15c181facc707cb53f4e15.tar.gz |
SERVER-6302 Fix multiple fsyncLock() invocation race condition
Diffstat (limited to 'src/mongo/db/instance.cpp')
-rw-r--r-- | src/mongo/db/instance.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/instance.cpp b/src/mongo/db/instance.cpp index 1c0abb7c6f2..3d0e7b10d56 100644 --- a/src/mongo/db/instance.cpp +++ b/src/mongo/db/instance.cpp @@ -703,6 +703,8 @@ void assembleResponse(OperationContext* txn, if (txn->lockState()->isReadLocked()) { LOG(1) << "note: not profiling because recursive read lock"; } else if (lockedForWriting()) { + // TODO SERVER-26825: Fix race condition where fsyncLock is acquired post + // lockedForWriting() call but prior to profile collection lock acquisition. LOG(1) << "note: not profiling because doing fsync+lock"; } else if (storageGlobalParams.readOnly) { LOG(1) << "note: not profiling because server is read-only"; |