Skip to content
This repository was archived by the owner on Sep 6, 2022. It is now read-only.

Commit 3cd6837

Browse files
inelgnuAurelienGasser
authored andcommitted
Check done intermediary models only when tuple is Done
1 parent ef03d2e commit 3cd6837

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

chaincode/compute_plan.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,11 @@ func UpdateComputePlanState(db *LedgerDB, ComputePlanID, tupleStatus, tupleKey s
409409
return err
410410
}
411411
statusUpdated := cp.UpdateStatus(tupleStatus)
412-
doneModels, err := cp.CheckDoneIntermediaryModel(db)
412+
doneModels := []string{}
413+
if tupleStatus == StatusDone {
414+
doneModels, err = cp.CheckDoneIntermediaryModel(db)
415+
}
416+
413417
if err != nil {
414418
return err
415419
}

0 commit comments

Comments
 (0)