From: Jan Wieck Date: Tue, 29 Oct 2013 22:48:25 +0000 (-0400) Subject: Folding slon.stop() and coordinator.join(slon) into one loop. X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=f7c44d5b5d1418342557b32cbd92c43e9ff6a54c;p=slony1-engine.git Folding slon.stop() and coordinator.join(slon) into one loop. Stopping the slons and joining their processes in separate loops apparently can cause the regression test to hang under some rare race conditions. --- diff --git a/clustertest/regression/common_tests.js b/clustertest/regression/common_tests.js index 74cccd03..f0d02445 100644 --- a/clustertest/regression/common_tests.js +++ b/clustertest/regression/common_tests.js @@ -70,8 +70,6 @@ function launch_slon(coordinator) { function terminate_slon(coordinator) { for(var idx=0; idx < slon_array.length; idx++) { slon_array[idx].stop(); - } - for(var idx=0; idx < slon_array.length; idx++) { coordinator.join(slon_array[idx]); } }