You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by be...@apache.org on 2012/12/11 01:01:19 UTC
svn commit: r1419920 -
/incubator/mesos/branches/0.10.x/src/logging/logging.cpp
Author: benh
Date: Tue Dec 11 00:01:19 2012
New Revision: 1419920
URL: http://svn.apache.org/viewvc?rev=1419920&view=rev
Log:
Fixed bug where masters/slaves can get defunct because the static
'Once' instance in logging.cpp attempts to get destructed (fix is to
put it on the heap).
Modified:
incubator/mesos/branches/0.10.x/src/logging/logging.cpp
Modified: incubator/mesos/branches/0.10.x/src/logging/logging.cpp
URL: http://svn.apache.org/viewvc/incubator/mesos/branches/0.10.x/src/logging/logging.cpp?rev=1419920&r1=1419919&r2=1419920&view=diff
==============================================================================
--- incubator/mesos/branches/0.10.x/src/logging/logging.cpp (original)
+++ incubator/mesos/branches/0.10.x/src/logging/logging.cpp Tue Dec 11 00:01:19 2012
@@ -152,9 +152,9 @@ private:
void initialize(const string& _argv0, const Flags& flags)
{
- static Once initialized;
+ static Once* initialized = new Once();
- if (initialized.once()) {
+ if (initialized->once()) {
return;
}
@@ -189,7 +189,7 @@ void initialize(const string& _argv0, co
// exits (i.e., use a supervisor which re-spawns appropriately).
spawn(new LoggingProcess(), true);
- initialized.done();
+ initialized->done();
}
} // namespace logging {