Commit 23b4e99c authored by Dan Melnic's avatar Dan Melnic Committed by Facebook GitHub Bot

Fix Singleton TSAN issue (mutex used after being destroyed)

Summary: Fix Singleton TSAN issue (mutex used after being destroyed)

Reviewed By: yfeldblum

Differential Revision: D22925120

fbshipit-source-id: e25c113cdef7076c93a189281f5b9d842f576dd3
parent 44021201
...@@ -419,10 +419,13 @@ void SingletonVault::startShutdownTimer() { ...@@ -419,10 +419,13 @@ void SingletonVault::startShutdownTimer() {
for (auto& logMessage : shutdownLog_.copy()) { for (auto& logMessage : shutdownLog_.copy()) {
shutdownLog += logMessage + "\n"; shutdownLog += logMessage + "\n";
} }
LOG(FATAL) << "Failed to complete shutdown within "
<< std::chrono::milliseconds(shutdownTimeout_).count() auto msg = folly::to<std::string>(
<< "ms. Shutdown log:\n" "Failed to complete shutdown within ",
<< shutdownLog; std::chrono::milliseconds(shutdownTimeout_).count(),
"ms. Shutdown log:\n",
shutdownLog);
folly::terminate_with<std::runtime_error>(msg);
} }
} // namespace folly } // namespace folly
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment