mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-01 00:15:51 +00:00
Fix race condition rotating log files.
This commit is contained in:
@@ -145,6 +145,8 @@ void Log::print (std::string const& text, bool toStdErr)
|
||||
|
||||
std::string Log::rotateLog ()
|
||||
{
|
||||
boost::recursive_mutex::scoped_lock sl (s_lock);
|
||||
|
||||
bool const wasOpened = s_logFile.closeAndReopen ();
|
||||
|
||||
if (wasOpened)
|
||||
|
||||
Reference in New Issue
Block a user