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

Commit 8294be9

Browse files
authored
Merge pull request #594 from k82cn/kb_593
Fixed Job.Clone issue.
2 parents 1ae2112 + 5e68010 commit 8294be9

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)