mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-12 14:27:27 -08:00
d80b0810c1
With defer having less of a performance penalty, there is no reason not to do those crucial operations via defer. Context: With isolation in place, if we forget to Commit/Rollback, the low watermark will get stuck forever. The current code should not have any bugs, but moving to defer helps to avoid future bugs. This is also moving the `closeAppend` in the `Commit` implementation itself to defer. If logging to the WAL fails, we would have missed the `closeAppend`. Signed-off-by: beorn7 <beorn@grafana.com> |
||
---|---|---|
.. | ||
testdata | ||
helpers_test.go | ||
manager.go | ||
manager_test.go | ||
scrape.go | ||
scrape_test.go | ||
target.go | ||
target_test.go |