diff options
author | gjoranv <gjoranv@gmail.com> | 2023-11-01 21:47:05 +0100 |
---|---|---|
committer | gjoranv <gjoranv@gmail.com> | 2023-11-01 21:47:05 +0100 |
commit | 944670b168324c9963aa9f6301c7c378147b040a (patch) | |
tree | e18ce6fad87c06009ac3ac977dede7a136b4130b /controller-server | |
parent | abaa1da8fce463f86aa007de5461bc8570aed196 (diff) |
Add comment
Diffstat (limited to 'controller-server')
-rw-r--r-- | controller-server/src/main/java/com/yahoo/vespa/hosted/controller/maintenance/BillingReportMaintainer.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/maintenance/BillingReportMaintainer.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/maintenance/BillingReportMaintainer.java index 64631799804..7434fce31bf 100644 --- a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/maintenance/BillingReportMaintainer.java +++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/maintenance/BillingReportMaintainer.java @@ -81,6 +81,7 @@ public class BillingReportMaintainer extends ControllerMaintainer { case UNMODIFIED -> log.finer(() ->invoiceMessage(bill.id(), exportedId) + " was not modified"); case MODIFIED -> log.fine(invoiceMessage(bill.id(), exportedId) + " was updated with " + update.itemsUpdate().get()); case UNMODIFIABLE -> { + // This check is needed to avoid setting the status multiple times if (bill.status() != BillStatus.FROZEN) { log.fine(() -> invoiceMessage(bill.id(), exportedId) + " is now unmodifiable"); databaseClient.setStatus(bill.id(), "system", BillStatus.FROZEN); |