Removed redundant synchronization and conditional check.

Review: https://reviews.apache.org/r/27500


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/6df6d02c
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/6df6d02c
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/6df6d02c

Branch: refs/heads/master
Commit: 6df6d02c2669575037fb0fb5bbbb4d6f1ccdccc1
Parents: b1f2bb9
Author: Benjamin Hindman <[email protected]>
Authored: Sun Nov 2 15:57:21 2014 -0800
Committer: Benjamin Hindman <[email protected]>
Committed: Sat Nov 15 16:25:58 2014 -0800

----------------------------------------------------------------------
 3rdparty/libprocess/src/process.cpp | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/6df6d02c/3rdparty/libprocess/src/process.cpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/src/process.cpp 
b/3rdparty/libprocess/src/process.cpp
index 9551d99..0995a9c 100644
--- a/3rdparty/libprocess/src/process.cpp
+++ b/3rdparty/libprocess/src/process.cpp
@@ -2444,11 +2444,7 @@ void SocketManager::exited(ProcessBase* process)
       if (linkee == pid) {
         foreach (ProcessBase* linker, processes) {
           CHECK(linker != process) << "Process linked with itself";
-          synchronized (timeouts) {
-            if (Clock::paused()) {
-              Clock::update(linker, time);
-            }
-          }
+          Clock::update(linker, time);
           linker->enqueue(new ExitedEvent(linkee));
         }
       }

Reply via email to