瀏覽代碼

Merge pull request #30685 from Microsoft/jjh/commandLine

Windows: Remove unused commandLine
Tibor Vass 8 年之前
父節點
當前提交
edd977db97
共有 2 個文件被更改,包括 2 次插入7 次删除
  1. 1 3
      libcontainerd/client_windows.go
  2. 1 4
      libcontainerd/process_windows.go

+ 1 - 3
libcontainerd/client_windows.go

@@ -251,7 +251,6 @@ func (clnt *client) Create(containerID string, checkpoint string, checkpointDir
 					client:       clnt,
 					friendlyName: InitFriendlyName,
 				},
-				commandLine: strings.Join(spec.Process.Args, " "),
 			},
 			processes: make(map[string]*process),
 		},
@@ -354,8 +353,7 @@ func (clnt *client) AddProcess(ctx context.Context, containerID, processFriendly
 			client:       clnt,
 			systemPid:    uint32(pid),
 		},
-		commandLine: createProcessParms.CommandLine,
-		hcsProcess:  newProcess,
+		hcsProcess: newProcess,
 	}
 
 	// Add the process to the container's list of processes

+ 1 - 4
libcontainerd/process_windows.go

@@ -13,10 +13,7 @@ type process struct {
 	processCommon
 
 	// Platform specific fields are below here.
-
-	// commandLine is to support returning summary information for docker top
-	commandLine string
-	hcsProcess  hcsshim.Process
+	hcsProcess hcsshim.Process
 }
 
 type autoClosingReader struct {