summaryrefslogtreecommitdiff
path: root/src/mongo/util/signal_handlers.cpp
diff options
context:
space:
mode:
authorBilly Donahue <billy.donahue@mongodb.com>2020-01-15 17:48:54 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-01-30 17:42:02 +0000
commitbc68d8424d15a9f3eeab35730b0043459e289ad9 (patch)
treea1b2883cb3f807c8256cd846a64d59d838b5c3ad /src/mongo/util/signal_handlers.cpp
parenta6d3529b264b8b2331faea6a0e645fcf9def8f7f (diff)
downloadmongo-bc68d8424d15a9f3eeab35730b0043459e289ad9.tar.gz
SERVER-45587 SIGUSR2 one thread per log line
- add mongosymb_multithread.py - mongosymb.py argparse and slight refactor for reuse. create mode 100755 buildscripts/mongosymb_multithread.py
Diffstat (limited to 'src/mongo/util/signal_handlers.cpp')
-rw-r--r--src/mongo/util/signal_handlers.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mongo/util/signal_handlers.cpp b/src/mongo/util/signal_handlers.cpp
index 711f161e4da..47582a9ae84 100644
--- a/src/mongo/util/signal_handlers.cpp
+++ b/src/mongo/util/signal_handlers.cpp
@@ -223,10 +223,7 @@ void handleOneSignal(const SignalWaitResult& waited, LogRotationState* rotation)
}
#if defined(MONGO_STACKTRACE_CAN_DUMP_ALL_THREADS)
if (sig == stackTraceSignal()) {
- auto logObj = log();
- auto& stream = logObj.setIsTruncatable(false).stream();
- OstreamStackTraceSink sink{stream};
- printAllThreadStacks(sink);
+ printAllThreadStacks();
return;
}
#endif
@@ -240,7 +237,7 @@ void handleOneSignal(const SignalWaitResult& waited, LogRotationState* rotation)
* to ensure the db and log mutexes aren't held.
*/
void signalProcessingThread(LogFileStatus rotate) {
- setThreadName("signalProcessingThread");
+ setThreadName("SignalHandler");
LogRotationState logRotationState{rotate, logRotationState.kNever};