aboutsummaryrefslogtreecommitdiff
path: root/refstore/files/batch_apply.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-23 05:17:52 +0000
committerGravatar Runxi Yu2026-03-23 05:17:52 +0000
commitc8dd7d3b44c93a664dddc0c4619d336c6e13d2a8 (patch)
tree335e4d701cf122a77cf5b4c94f9f528242a7d566 /refstore/files/batch_apply.go
parentVendor a minimal internal/cpu for AMD64 only (diff)
signatureNo signature
*: Lints
Diffstat (limited to 'refstore/files/batch_apply.go')
-rw-r--r--refstore/files/batch_apply.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/refstore/files/batch_apply.go b/refstore/files/batch_apply.go
index 55224b36..b4ba16ad 100644
--- a/refstore/files/batch_apply.go
+++ b/refstore/files/batch_apply.go
@@ -50,6 +50,7 @@ func (batch *Batch) Apply() ([]refstore.BatchResult, error) {
}
seenTargets[targetKey] = struct{}{}
+
remainingIdx = append(remainingIdx, i)
remainingOps = append(remainingOps, op)
}
@@ -87,6 +88,7 @@ func (batch *Batch) Apply() ([]refstore.BatchResult, error) {
}
fatalName := batchResultName(err)
+
fatalMarked := false
for i, idx := range remainingIdx {
if !fatalMarked && remainingOps[i].name == fatalName && fatalName != "" {
@@ -107,6 +109,7 @@ func (batch *Batch) Apply() ([]refstore.BatchResult, error) {
err = executor.commitPreparedUpdates(prepared)
if err != nil {
fatalName := batchResultName(err)
+
fatalMarked := false
for i, idx := range remainingIdx {
if !fatalMarked && remainingOps[i].name == fatalName && fatalName != "" {