diff options
author | Mathias Stearn <mathias@10gen.com> | 2017-01-13 16:16:21 -0500 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2017-03-24 16:13:26 -0400 |
commit | 63d1f4c049587e7923a1154fc31f29bc190316df (patch) | |
tree | 35f2b6172f26a003d896d8241ca9800d8a3a71d8 /src/mongo/db/repl/noop_writer.cpp | |
parent | 27ddad2221974798284ef62d3328a3c02a510220 (diff) | |
download | mongo-63d1f4c049587e7923a1154fc31f29bc190316df.tar.gz |
SERVER-27727 Hide idle threads in hang analyzer (extras)
Diffstat (limited to 'src/mongo/db/repl/noop_writer.cpp')
-rw-r--r-- | src/mongo/db/repl/noop_writer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/repl/noop_writer.cpp b/src/mongo/db/repl/noop_writer.cpp index 926db4aff07..5e2abd17dea 100644 --- a/src/mongo/db/repl/noop_writer.cpp +++ b/src/mongo/db/repl/noop_writer.cpp @@ -39,6 +39,7 @@ #include "mongo/db/repl/oplog.h" #include "mongo/db/server_parameters.h" #include "mongo/stdx/functional.h" +#include "mongo/util/concurrency/idle_thread_block.h" #include "mongo/util/log.h" namespace mongo { @@ -82,6 +83,7 @@ private: OperationContext& opCtx = *opCtxPtr; { stdx::unique_lock<stdx::mutex> lk(_mutex); + IdleThreadBlock markIdle; _cv.wait_for(lk, waitTime.toSystemDuration(), [&] { return _inShutdown; }); if (_inShutdown) |