From e6fcd0ec20d0a070df9a1e815f004c753f587c4a Mon Sep 17 00:00:00 2001 From: Diptanu Choudhury Date: Tue, 9 Feb 2016 10:21:47 -0800 Subject: [PATCH] Removing taskDir from the exechandle --- client/driver/exec.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/client/driver/exec.go b/client/driver/exec.go index 50ba323ac..35e73dd1b 100644 --- a/client/driver/exec.go +++ b/client/driver/exec.go @@ -40,7 +40,6 @@ type execHandle struct { executor executor.Executor isolationConfig *executor.IsolationConfig userPid int - taskDir string allocDir *allocdir.AllocDir killTimeout time.Duration logger *log.Logger @@ -137,7 +136,6 @@ func (d *ExecDriver) Start(ctx *ExecContext, task *structs.Task) (DriverHandle, pluginClient: pluginClient, userPid: ps.Pid, executor: exec, - taskDir: taskDir, allocDir: ctx.AllocDir, isolationConfig: ps.IsolationConfig, killTimeout: d.DriverContext.KillTimeout(task), @@ -191,7 +189,6 @@ func (d *ExecDriver) Open(ctx *ExecContext, handleID string) (DriverHandle, erro pluginClient: client, executor: exec, userPid: id.UserPid, - taskDir: id.TaskDir, allocDir: id.AllocDir, isolationConfig: id.IsolationConfig, logger: d.logger, @@ -208,7 +205,6 @@ func (h *execHandle) ID() string { KillTimeout: h.killTimeout, PluginConfig: NewExecutorReattachConfig(h.pluginClient.ReattachConfig()), UserPid: h.userPid, - TaskDir: h.taskDir, AllocDir: h.allocDir, IsolationConfig: h.isolationConfig, }