Skip to content
This repository was archived by the owner on May 25, 2023. It is now read-only.

Commit 68a0b9c

Browse files
authored
Merge pull request #595 from k82cn/automated-cherry-pick-of-#594-upstream-release-0.4
Automated cherry pick of #594: Fixed Job.Clone issue.
2 parents 30e11a8 + 1ac8e09 commit 68a0b9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/scheduler/api/job_info.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,8 @@ func (ji *JobInfo) Clone() *JobInfo {
288288

289289
MinAvailable: ji.MinAvailable,
290290
NodeSelector: map[string]string{},
291-
Allocated: ji.Allocated.Clone(),
292-
TotalRequest: ji.TotalRequest.Clone(),
291+
Allocated: EmptyResource(),
292+
TotalRequest: EmptyResource(),
293293
NodesFitDelta: make(NodeResourceMap),
294294

295295
PDB: ji.PDB,

0 commit comments

Comments
 (0)