Repository: mesos Updated Branches: refs/heads/master 0f348c411 -> 53a7a6430
MESOS-2038: removed dead code from _runTask(). Review: https://reviews.apache.org/r/27567 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/53a7a643 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/53a7a643 Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/53a7a643 Branch: refs/heads/master Commit: 53a7a64301b0c42319abffeaf9092ee017030267 Parents: 0f348c4 Author: Bernd Mathiske <[email protected]> Authored: Wed Nov 5 11:20:57 2014 -0800 Committer: Vinod Kone <[email protected]> Committed: Wed Nov 5 11:20:58 2014 -0800 ---------------------------------------------------------------------- src/slave/slave.cpp | 7 ------- 1 file changed, 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/53a7a643/src/slave/slave.cpp ---------------------------------------------------------------------- diff --git a/src/slave/slave.cpp b/src/slave/slave.cpp index b542491..dbfd1a8 100644 --- a/src/slave/slave.cpp +++ b/src/slave/slave.cpp @@ -1272,13 +1272,6 @@ void Slave::_runTask( return; } - if (framework == NULL) { - framework = new Framework(this, frameworkId, frameworkInfo, pid); - frameworks[frameworkId] = framework; - } - - CHECK_NOTNULL(framework); - CHECK(framework->state == Framework::RUNNING) << framework->state; // Either send the task to an executor or start a new executor
