projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
17574: Add -update-confirmed-fields=false option.
[arvados.git]
/
services
/
keep-balance
/
balance.go
diff --git
a/services/keep-balance/balance.go
b/services/keep-balance/balance.go
index 6a71cf99f71e6431e9803e9d82e270da511949a7..67021bef36b0da7247a4ca32ea74e79234bc0311 100644
(file)
--- a/
services/keep-balance/balance.go
+++ b/
services/keep-balance/balance.go
@@
-173,7
+173,12
@@
func (bal *Balancer) Run(client *arvados.Client, cluster *arvados.Cluster, runOp
return
}
}
- err = bal.updateCollections(ctx, client, cluster)
+ if runOptions.CommitConfirmedFields {
+ err = bal.updateCollections(ctx, client, cluster)
+ if err != nil {
+ return
+ }
+ }
return
}