17574: Add -update-confirmed-fields=false option.
[arvados.git] / services / keep-balance / balance.go
index 6a71cf99f71e6431e9803e9d82e270da511949a7..67021bef36b0da7247a4ca32ea74e79234bc0311 100644 (file)
@@ -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
 }