Skip to content

Commit

Permalink
Agent清理进程为worker兜底 #10234
Browse files Browse the repository at this point in the history
修改 windwos 的更新逻辑
  • Loading branch information
tangruotian committed Jul 2, 2024
1 parent ad77081 commit 0ece104
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/agent/agent/src/pkg/upgrader/upgrader.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,17 +217,8 @@ func replaceAgentFile(fileName string) error {
return errors.Wrapf(err, "replaceAgentFile open %s error", src)
}

//if _, err := fileutil.CopyFile(src, dst, true); err != nil {
// logs.WithError(err).Warnf("replaceAgentFile %s stat error", dst)
// return err
//}
if err := innerFileUtil.AtomicWriteFile(dst, srcFile, perm); err != nil {
return errors.Wrapf(err, "replaceAgentFile AtomicWriteFile %s error", dst)
}

if err := fileutil.SetExecutable(dst); err != nil {
logs.WithError(err).Warnf("chmod %s file failed", dst)
return err
}
return nil
}

0 comments on commit 0ece104

Please sign in to comment.