diff options
author | Matt Cotter <matt.cotter@mongodb.com> | 2016-01-28 16:25:59 -0500 |
---|---|---|
committer | Matt Cotter <matt.cotter@mongodb.com> | 2016-02-25 10:25:55 -0500 |
commit | 6f21482980d5a9be067d047f4601ad9ef8256d01 (patch) | |
tree | 9020f81eda275f785ec0f21c30191e2e8ad8605e /src/mongo/util/log.h | |
parent | 4e87684433692889660c57763fa5c188651b646d (diff) | |
download | mongo-6f21482980d5a9be067d047f4601ad9ef8256d01.tar.gz |
SERVER-22364 threadsafe errno printing, pidfile error fix
If the errno is set after a pidfile write failure, then it will get
printed, otherwise this will print "Unable to determine OS error".
Diffstat (limited to 'src/mongo/util/log.h')
-rw-r--r-- | src/mongo/util/log.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/util/log.h b/src/mongo/util/log.h index b0f53a30b87..82a78b3cf99 100644 --- a/src/mongo/util/log.h +++ b/src/mongo/util/log.h @@ -217,6 +217,7 @@ extern Tee* const warnings; // Things put here go in serverStatus extern Tee* const startupWarningsLog; // Things put here get reported in MMS std::string errnoWithDescription(int errorcode = -1); +std::pair<int, std::string> errnoAndDescription(); /** * Write the current context (backtrace), along with the optional "msg". |