MCPcopy
hub / github.com/prometheus/prometheus / Rollback

Method Rollback

tsdb/head_append.go:157–163  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

155}
156
157func (a *initAppender) Rollback() error {
158 if a.app == nil {
159 a.head.metrics.activeAppenders.Dec()
160 return nil
161 }
162 return a.app.Rollback()
163}
164
165// Appender returns a new Appender on the database.
166func (h *Head) Appender(context.Context) storage.Appender {

Callers

nothing calls this directly

Calls 2

DecMethod · 0.80
RollbackMethod · 0.65

Tested by

no test coverage detected