summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Guo <robert.guo@10gen.com>2017-07-31 12:25:32 -0400
committerRobert Guo <robert.guo@10gen.com>2017-07-31 12:25:32 -0400
commit6d9d554e24b134e9cadad7e9377c5e4634c3a6af (patch)
treec7d2a77b91eade4f935ec10cc0cc3f17c9c3372d
parent3cecc93793e62bc0451a04553e0ddb0df259fd1d (diff)
downloadmongo-6d9d554e24b134e9cadad7e9377c5e4634c3a6af.tar.gz
Revert "SERVER-29424 better windows dump naming"
This reverts commit 34d82ec87524545d67067b42c101fa5911763c29.
-rw-r--r--src/mongo/util/exception_filter_win32.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/mongo/util/exception_filter_win32.cpp b/src/mongo/util/exception_filter_win32.cpp
index f551a3d1d1b..db0e3e9bb56 100644
--- a/src/mongo/util/exception_filter_win32.cpp
+++ b/src/mongo/util/exception_filter_win32.cpp
@@ -68,17 +68,12 @@ void doMinidumpWithException(struct _EXCEPTION_POINTERS* exceptionInfo) {
}
}
- std::wstring dumpName = L"dump_";
+ std::wstring dumpName(moduleFileName);
- dumpName += moduleFileName;
-
- dumpName += L".";
-
- dumpName += std::to_wstring(GetCurrentProcessId());
+ std::string currentTime = terseCurrentTime(false);
dumpName += L".";
- std::string currentTime = terseCurrentTime(false);
dumpName += toWideString(currentTime.c_str());
dumpName += L".mdmp";